xparameters.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * arch/ppc/platforms/4xx/xparameters/xparameters.h
  3. *
  4. * This file includes the correct xparameters.h for the CONFIG'ed board plus
  5. * fixups to translate board specific XPAR values to a common set of names
  6. *
  7. * Author: MontaVista Software, Inc.
  8. * source@mvista.com
  9. *
  10. * 2004 (c) MontaVista Software, Inc. This file is licensed under the terms
  11. * of the GNU General Public License version 2. This program is licensed
  12. * "as is" without any warranty of any kind, whether express or implied.
  13. */
  14. #if defined(CONFIG_XILINX_ML300)
  15. #include "xparameters_ml300.h"
  16. #elif defined(CONFIG_XILINX_ML403)
  17. #include "xparameters_ml403.h"
  18. #else
  19. /* Add other board xparameter includes here before the #else */
  20. #error No xparameters_*.h file included
  21. #endif
  22. #ifndef SERIAL_PORT_DFNS
  23. /* zImage serial port definitions */
  24. #define RS_TABLE_SIZE 1
  25. #define SERIAL_PORT_DFNS { \
  26. .baud_base = XPAR_UARTNS550_0_CLOCK_FREQ_HZ/16, \
  27. .irq = XPAR_INTC_0_UARTNS550_0_VEC_ID, \
  28. .flags = ASYNC_BOOT_AUTOCONF, \
  29. .iomem_base = (u8 *)XPAR_UARTNS550_0_BASEADDR + 3, \
  30. .iomem_reg_shift = 2, \
  31. .io_type = SERIAL_IO_MEM, \
  32. },
  33. #endif
  34. /*
  35. * A few reasonable defaults for the #defines which could be missing depending
  36. * on the IP version or variant (e.g. OPB vs PLB)
  37. */
  38. #ifndef XPAR_EMAC_0_CAM_EXIST
  39. #define XPAR_EMAC_0_CAM_EXIST 0
  40. #endif
  41. #ifndef XPAR_EMAC_0_JUMBO_EXIST
  42. #define XPAR_EMAC_0_JUMBO_EXIST 0
  43. #endif
  44. #ifndef XPAR_EMAC_0_TX_DRE_TYPE
  45. #define XPAR_EMAC_0_TX_DRE_TYPE 0
  46. #endif
  47. #ifndef XPAR_EMAC_0_RX_DRE_TYPE
  48. #define XPAR_EMAC_0_RX_DRE_TYPE 0
  49. #endif
  50. #ifndef XPAR_EMAC_0_TX_INCLUDE_CSUM
  51. #define XPAR_EMAC_0_TX_INCLUDE_CSUM 0
  52. #endif
  53. #ifndef XPAR_EMAC_0_RX_INCLUDE_CSUM
  54. #define XPAR_EMAC_0_RX_INCLUDE_CSUM 0
  55. #endif
  56. #ifndef XPAR_EMAC_1_CAM_EXIST
  57. #define XPAR_EMAC_1_CAM_EXIST 0
  58. #endif
  59. #ifndef XPAR_EMAC_1_JUMBO_EXIST
  60. #define XPAR_EMAC_1_JUMBO_EXIST 0
  61. #endif
  62. #ifndef XPAR_EMAC_1_TX_DRE_TYPE
  63. #define XPAR_EMAC_1_TX_DRE_TYPE 0
  64. #endif
  65. #ifndef XPAR_EMAC_1_RX_DRE_TYPE
  66. #define XPAR_EMAC_1_RX_DRE_TYPE 0
  67. #endif
  68. #ifndef XPAR_EMAC_1_TX_INCLUDE_CSUM
  69. #define XPAR_EMAC_1_TX_INCLUDE_CSUM 0
  70. #endif
  71. #ifndef XPAR_EMAC_1_RX_INCLUDE_CSUM
  72. #define XPAR_EMAC_1_RX_INCLUDE_CSUM 0
  73. #endif
  74. #ifndef XPAR_GPIO_0_IS_DUAL
  75. #define XPAR_GPIO_0_IS_DUAL 0
  76. #endif
  77. #ifndef XPAR_GPIO_1_IS_DUAL
  78. #define XPAR_GPIO_1_IS_DUAL 0
  79. #endif
  80. #ifndef XPAR_GPIO_2_IS_DUAL
  81. #define XPAR_GPIO_2_IS_DUAL 0
  82. #endif
  83. #ifndef XPAR_GPIO_3_IS_DUAL
  84. #define XPAR_GPIO_3_IS_DUAL 0
  85. #endif
  86. #ifndef XPAR_GPIO_4_IS_DUAL
  87. #define XPAR_GPIO_4_IS_DUAL 0
  88. #endif