edb93xx.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * U-Boot - Configuration file for Cirrus Logic EDB93xx boards
  3. */
  4. #ifndef __CONFIG_H
  5. #define __CONFIG_H
  6. #ifdef CONFIG_MK_edb9301
  7. #define CONFIG_EDB9301
  8. #elif defined(CONFIG_MK_edb9302)
  9. #define CONFIG_EDB9302
  10. #elif defined(CONFIG_MK_edb9302a)
  11. #define CONFIG_EDB9302A
  12. #elif defined(CONFIG_MK_edb9307)
  13. #define CONFIG_EDB9307
  14. #elif defined(CONFIG_MK_edb9307a)
  15. #define CONFIG_EDB9307A
  16. #elif defined(CONFIG_MK_edb9312)
  17. #define CONFIG_EDB9312
  18. #elif defined(CONFIG_MK_edb9315)
  19. #define CONFIG_EDB9315
  20. #elif defined(CONFIG_MK_edb9315a)
  21. #define CONFIG_EDB9315A
  22. #else
  23. #error "no board defined"
  24. #endif
  25. /* Initial environment and monitor configuration options. */
  26. #define CONFIG_CMDLINE_TAG 1
  27. #define CONFIG_INITRD_TAG 1
  28. #define CONFIG_SETUP_MEMORY_TAGS 1
  29. #define CONFIG_BOOTFILE "edb93xx.img"
  30. #ifdef CONFIG_EDB9301
  31. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9301
  32. #elif defined(CONFIG_EDB9302)
  33. #define CONFIG_EP9302
  34. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9302
  35. #elif defined(CONFIG_EDB9302A)
  36. #define CONFIG_EP9302
  37. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9302A
  38. #elif defined(CONFIG_EDB9307)
  39. #define CONFIG_EP9307
  40. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9307
  41. #elif defined(CONFIG_EDB9307A)
  42. #define CONFIG_EP9307
  43. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9307A
  44. #elif defined(CONFIG_EDB9312)
  45. #define CONFIG_EP9312
  46. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9312
  47. #elif defined(CONFIG_EDB9315)
  48. #define CONFIG_EP9315
  49. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9315
  50. #elif defined(CONFIG_EDB9315A)
  51. #define CONFIG_EP9315
  52. #define CONFIG_MACH_TYPE MACH_TYPE_EDB9315A
  53. #else
  54. #error "no board defined"
  55. #endif
  56. /* High-level configuration options */
  57. #define CONFIG_EP93XX 1 /* This is a Cirrus Logic 93xx SoC */
  58. #define CONFIG_SYS_CLK_FREQ 14745600 /* EP93xx has a 14.7456 clock */
  59. /* Monitor configuration */
  60. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */
  61. /* Serial port hardware configuration */
  62. #define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, \
  63. 115200, 230400}
  64. #define CONFIG_SYS_SERIAL0 0x808C0000
  65. #define CONFIG_SYS_SERIAL1 0x808D0000
  66. /*#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
  67. (void *)CONFIG_SYS_SERIAL1} */
  68. #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0}
  69. /* Status LED */
  70. /* Optional value */
  71. /* Network hardware configuration */
  72. #define CONFIG_DRIVER_EP93XX_MAC
  73. #define CONFIG_MII_SUPPRESS_PREAMBLE
  74. #undef CONFIG_NETCONSOLE
  75. /* SDRAM configuration */
  76. #if defined(CONFIG_EDB9301) || defined(CONFIG_EDB9302) || \
  77. defined(CONFIG_EDB9307) || defined CONFIG_EDB9312 || \
  78. defined(CONFIG_EDB9315)
  79. /*
  80. * EDB9301/2 has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75
  81. * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set
  82. * the SROMLL bit on the processor, resulting in this non-contiguous memory map.
  83. *
  84. * The EDB9307, EDB9312, and EDB9315 have 2 banks of SDRAM consisting of
  85. * 2x Samsung K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of
  86. * 64 MB of SDRAM.
  87. */
  88. #define CONFIG_EDB93XX_SDCS3
  89. #elif defined(CONFIG_EDB9302A) || \
  90. defined(CONFIG_EDB9307A) || defined(CONFIG_EDB9315A)
  91. /*
  92. * EDB9302a has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75
  93. * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set
  94. * the SROMLL bit on the processor, resulting in this non-contiguous memory map.
  95. *
  96. * The EDB9307A and EDB9315A have 2 banks of SDRAM consisting of 2x Samsung
  97. * K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of 64 MB of SDRAM.
  98. */
  99. #define CONFIG_EDB93XX_SDCS0
  100. #else
  101. #error "no SDCS configuration for this board"
  102. #endif
  103. #if defined(CONFIG_EDB93XX_SDCS3)
  104. #define CONFIG_SYS_LOAD_ADDR 0x01000000 /* Default load address */
  105. #define PHYS_SDRAM_1 0x00000000
  106. #elif defined(CONFIG_EDB93XX_SDCS0)
  107. #define CONFIG_SYS_LOAD_ADDR 0xc1000000 /* Default load address */
  108. #define PHYS_SDRAM_1 0xc0000000
  109. #endif
  110. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  111. #define CONFIG_SYS_INIT_SP_ADDR \
  112. (CONFIG_SYS_SDRAM_BASE + 32*1024 - GENERATED_GBL_DATA_SIZE)
  113. /* Must match kernel config */
  114. #define LINUX_BOOT_PARAM_ADDR (PHYS_SDRAM_1 + 0x100)
  115. /* Run-time memory allocatons */
  116. #define CONFIG_SYS_GBL_DATA_SIZE 128
  117. #define CONFIG_SYS_MALLOC_LEN (512 * 1024)
  118. /* -----------------------------------------------------------------------------
  119. * FLASH and environment organization
  120. *
  121. * The EDB9301, EDB9302(a), EDB9307a, EDB9315a have 1 bank of flash memory at
  122. * 0x60000000 consisting of 1x Intel TE28F128J3C-150 128 Mbit flash on a 16-bit
  123. * data bus, for a total of 16 MB of CFI-compatible flash.
  124. *
  125. * The EDB9307, EDB9312, and EDB9315 have 1 bank of flash memory at
  126. * 0x60000000 consisting of 2x Micron MT28F128J3-12 128 Mbit flash on a 32-bit
  127. * data bus, for a total of 32 MB of CFI-compatible flash.
  128. *
  129. *
  130. * EDB9301/02(a)7a/15a EDB9307/12/15
  131. * 0x60000000 - 0x0003FFFF u-boot u-boot
  132. * 0x60040000 - 0x0005FFFF environment #1 environment #1
  133. * 0x60060000 - 0x0007FFFF environment #2 environment #1 (continued)
  134. * 0x60080000 - 0x0009FFFF unused environment #2
  135. * 0x600A0000 - 0x000BFFFF unused environment #2 (continued)
  136. * 0x600C0000 - 0x00FFFFFF unused unused
  137. * 0x61000000 - 0x01FFFFFF not present unused
  138. */
  139. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  140. #define CONFIG_SYS_MAX_FLASH_SECT (256+8)
  141. #define PHYS_FLASH_1 CONFIG_SYS_TEXT_BASE
  142. #define CONFIG_SYS_FLASH_BASE CONFIG_SYS_TEXT_BASE
  143. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
  144. #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
  145. #define CONFIG_ENV_OVERWRITE /* Vendor params unprotected */
  146. #define CONFIG_USB_OHCI_NEW
  147. #define CONFIG_USB_OHCI_EP93XX
  148. #define CONFIG_SYS_USB_OHCI_CPU_INIT
  149. #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 3
  150. #define CONFIG_SYS_USB_OHCI_SLOT_NAME "ep93xx-ohci"
  151. #define CONFIG_SYS_USB_OHCI_REGS_BASE 0x80020000
  152. /* Define to disable flash configuration*/
  153. /* #define CONFIG_EP93XX_NO_FLASH_CFG */
  154. /* Define this for indusrial rated chips */
  155. /* #define CONFIG_EDB93XX_INDUSTRIAL */
  156. #endif /* !defined (__CONFIG_H) */