virtex-ii_pro.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * arch/ppc/platforms/4xx/virtex-ii_pro.c
  3. *
  4. * Author: MontaVista Software, Inc.
  5. * source@mvista.com
  6. *
  7. * 2002-2004 (c) MontaVista Software, Inc. This file is licensed under the
  8. * terms of the GNU General Public License version 2. This program is licensed
  9. * "as is" without any warranty of any kind, whether express or implied.
  10. */
  11. #include <linux/config.h>
  12. #include <linux/init.h>
  13. #include <asm/ocp.h>
  14. #include "virtex-ii_pro.h"
  15. /* Have OCP take care of the serial ports. */
  16. struct ocp_def core_ocp[] = {
  17. #ifdef XPAR_UARTNS550_0_BASEADDR
  18. { .vendor = OCP_VENDOR_XILINX,
  19. .function = OCP_FUNC_16550,
  20. .index = 0,
  21. .paddr = XPAR_UARTNS550_0_BASEADDR,
  22. .irq = XPAR_INTC_0_UARTNS550_0_VEC_ID,
  23. .pm = OCP_CPM_NA
  24. },
  25. #ifdef XPAR_UARTNS550_1_BASEADDR
  26. { .vendor = OCP_VENDOR_XILINX,
  27. .function = OCP_FUNC_16550,
  28. .index = 1,
  29. .paddr = XPAR_UARTNS550_1_BASEADDR,
  30. .irq = XPAR_INTC_0_UARTNS550_1_VEC_ID,
  31. .pm = OCP_CPM_NA
  32. },
  33. #ifdef XPAR_UARTNS550_2_BASEADDR
  34. { .vendor = OCP_VENDOR_XILINX,
  35. .function = OCP_FUNC_16550,
  36. .index = 2,
  37. .paddr = XPAR_UARTNS550_2_BASEADDR,
  38. .irq = XPAR_INTC_0_UARTNS550_2_VEC_ID,
  39. .pm = OCP_CPM_NA
  40. },
  41. #ifdef XPAR_UARTNS550_3_BASEADDR
  42. { .vendor = OCP_VENDOR_XILINX,
  43. .function = OCP_FUNC_16550,
  44. .index = 3,
  45. .paddr = XPAR_UARTNS550_3_BASEADDR,
  46. .irq = XPAR_INTC_0_UARTNS550_3_VEC_ID,
  47. .pm = OCP_CPM_NA
  48. },
  49. #ifdef XPAR_UARTNS550_4_BASEADDR
  50. #error Edit this file to add more devices.
  51. #endif /* 4 */
  52. #endif /* 3 */
  53. #endif /* 2 */
  54. #endif /* 1 */
  55. #endif /* 0 */
  56. { .vendor = OCP_VENDOR_INVALID
  57. }
  58. };