sequoia.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. /*
  2. * (C) Copyright 2006-2007
  3. * Stefan Roese, DENX Software Engineering, sr@denx.de.
  4. *
  5. * (C) Copyright 2006
  6. * Jacqueline Pira-Ferriol, AMCC/IBM, jpira-ferriol@fr.ibm.com
  7. * Alain Saurel, AMCC/IBM, alain.saurel@fr.ibm.com
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. /************************************************************************
  25. * sequoia.h - configuration for Sequoia & Rainier boards
  26. ***********************************************************************/
  27. #ifndef __CONFIG_H
  28. #define __CONFIG_H
  29. /*-----------------------------------------------------------------------
  30. * High Level Configuration Options
  31. *----------------------------------------------------------------------*/
  32. /* This config file is used for Sequoia (440EPx) and Rainier (440GRx) */
  33. #ifndef CONFIG_RAINIER
  34. #define CONFIG_440EPX 1 /* Specific PPC440EPx */
  35. #else
  36. #define CONFIG_440GRX 1 /* Specific PPC440GRx */
  37. #endif
  38. #define CONFIG_440 1 /* ... PPC440 family */
  39. #define CONFIG_4xx 1 /* ... PPC4xx family */
  40. /* Detect Sequoia PLL input clock automatically via CPLD bit */
  41. #define CONFIG_SYS_CLK_FREQ ((in8(CFG_BCSR_BASE + 3) & 0x80) ? \
  42. 33333333 : 33000000)
  43. #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
  44. #define CONFIG_MISC_INIT_R 1 /* Call misc_init_r */
  45. /*-----------------------------------------------------------------------
  46. * Base addresses -- Note these are effective addresses where the
  47. * actual resources get mapped (not physical addresses)
  48. *----------------------------------------------------------------------*/
  49. #define CFG_MONITOR_LEN (384 * 1024) /* Reserve 384 kB for Monitor */
  50. #define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kB for malloc() */
  51. #define CFG_BOOT_BASE_ADDR 0xf0000000
  52. #define CFG_SDRAM_BASE 0x00000000 /* _must_ be 0 */
  53. #define CFG_FLASH_BASE 0xfc000000 /* start of FLASH */
  54. #define CFG_MONITOR_BASE TEXT_BASE
  55. #define CFG_NAND_ADDR 0xd0000000 /* NAND Flash */
  56. #define CFG_OCM_BASE 0xe0010000 /* ocm */
  57. #define CFG_OCM_DATA_ADDR CFG_OCM_BASE
  58. #define CFG_PCI_BASE 0xe0000000 /* Internal PCI regs */
  59. #define CFG_PCI_MEMBASE 0x80000000 /* mapped pci memory */
  60. #define CFG_PCI_MEMBASE1 CFG_PCI_MEMBASE + 0x10000000
  61. #define CFG_PCI_MEMBASE2 CFG_PCI_MEMBASE1 + 0x10000000
  62. #define CFG_PCI_MEMBASE3 CFG_PCI_MEMBASE2 + 0x10000000
  63. /* Don't change either of these */
  64. #define CFG_PERIPHERAL_BASE 0xef600000 /* internal peripherals */
  65. #define CFG_USB2D0_BASE 0xe0000100
  66. #define CFG_USB_DEVICE 0xe0000000
  67. #define CFG_USB_HOST 0xe0000400
  68. #define CFG_BCSR_BASE 0xc0000000
  69. /*-----------------------------------------------------------------------
  70. * Initial RAM & stack pointer
  71. *----------------------------------------------------------------------*/
  72. /* 440EPx/440GRx have 16KB of internal SRAM, so no need for D-Cache */
  73. #define CFG_INIT_RAM_ADDR CFG_OCM_BASE /* OCM */
  74. #define CFG_INIT_RAM_END (4 << 10)
  75. #define CFG_GBL_DATA_SIZE 256 /* num bytes initial data */
  76. #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
  77. #define CFG_INIT_SP_OFFSET CFG_POST_WORD_ADDR
  78. /*-----------------------------------------------------------------------
  79. * Serial Port
  80. *----------------------------------------------------------------------*/
  81. #define CFG_EXT_SERIAL_CLOCK 11059200 /* ext. 11.059MHz clk */
  82. #define CONFIG_BAUDRATE 115200
  83. #define CONFIG_SERIAL_MULTI 1
  84. /* define this if you want console on UART1 */
  85. #undef CONFIG_UART1_CONSOLE
  86. #define CFG_BAUDRATE_TABLE \
  87. {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
  88. /*-----------------------------------------------------------------------
  89. * Environment
  90. *----------------------------------------------------------------------*/
  91. #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
  92. #define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */
  93. #else
  94. #define CFG_ENV_IS_IN_NAND 1 /* use NAND for environment vars */
  95. #define CFG_ENV_IS_EMBEDDED 1 /* use embedded environment */
  96. #endif
  97. /*-----------------------------------------------------------------------
  98. * FLASH related
  99. *----------------------------------------------------------------------*/
  100. #define CFG_FLASH_CFI /* The flash is CFI compatible */
  101. #define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */
  102. #define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE }
  103. #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
  104. #define CFG_MAX_FLASH_SECT 512 /* max number of sectors on one chip */
  105. #define CFG_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
  106. #define CFG_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
  107. #define CFG_FLASH_USE_BUFFER_WRITE 1 /* use buffered writes (20x faster) */
  108. #define CFG_FLASH_PROTECTION 1 /* use hardware flash protection */
  109. #define CFG_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
  110. #define CFG_FLASH_QUIET_TEST 1 /* don't warn upon unknown flash */
  111. #ifdef CFG_ENV_IS_IN_FLASH
  112. #define CFG_ENV_SECT_SIZE 0x20000 /* size of one complete sector */
  113. #define CFG_ENV_ADDR ((-CFG_MONITOR_LEN)-CFG_ENV_SECT_SIZE)
  114. #define CFG_ENV_SIZE 0x2000 /* Total Size of Environment Sector */
  115. /* Address and size of Redundant Environment Sector */
  116. #define CFG_ENV_ADDR_REDUND (CFG_ENV_ADDR-CFG_ENV_SECT_SIZE)
  117. #define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
  118. #endif
  119. /*
  120. * IPL (Initial Program Loader, integrated inside CPU)
  121. * Will load first 4k from NAND (SPL) into cache and execute it from there.
  122. *
  123. * SPL (Secondary Program Loader)
  124. * Will load special U-Boot version (NUB) from NAND and execute it. This SPL
  125. * has to fit into 4kByte. It sets up the CPU and configures the SDRAM
  126. * controller and the NAND controller so that the special U-Boot image can be
  127. * loaded from NAND to SDRAM.
  128. *
  129. * NUB (NAND U-Boot)
  130. * This NAND U-Boot (NUB) is a special U-Boot version which can be started
  131. * from RAM. Therefore it mustn't (re-)configure the SDRAM controller.
  132. *
  133. * On 440EPx the SPL is copied to SDRAM before the NAND controller is
  134. * set up. While still running from cache, I experienced problems accessing
  135. * the NAND controller. sr - 2006-08-25
  136. */
  137. #define CFG_NAND_BOOT_SPL_SRC 0xfffff000 /* SPL location */
  138. #define CFG_NAND_BOOT_SPL_SIZE (4 << 10) /* SPL size */
  139. #define CFG_NAND_BOOT_SPL_DST (CFG_OCM_BASE + (12 << 10)) /* Copy SPL here */
  140. #define CFG_NAND_U_BOOT_DST 0x01000000 /* Load NUB to this addr */
  141. #define CFG_NAND_U_BOOT_START CFG_NAND_U_BOOT_DST /* Start NUB from this addr */
  142. #define CFG_NAND_BOOT_SPL_DELTA (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
  143. /*
  144. * Define the partitioning of the NAND chip (only RAM U-Boot is needed here)
  145. */
  146. #define CFG_NAND_U_BOOT_OFFS (16 << 10) /* Offset to RAM U-Boot image */
  147. #define CFG_NAND_U_BOOT_SIZE (384 << 10) /* Size of RAM U-Boot image */
  148. /*
  149. * Now the NAND chip has to be defined (no autodetection used!)
  150. */
  151. #define CFG_NAND_PAGE_SIZE 512 /* NAND chip page size */
  152. #define CFG_NAND_BLOCK_SIZE (16 << 10) /* NAND chip block size */
  153. #define CFG_NAND_PAGE_COUNT 32 /* NAND chip page count */
  154. #define CFG_NAND_BAD_BLOCK_POS 5 /* Location of bad block marker */
  155. #undef CFG_NAND_4_ADDR_CYCLE /* No fourth addr used (<=32MB) */
  156. #define CFG_NAND_ECCSIZE 256
  157. #define CFG_NAND_ECCBYTES 3
  158. #define CFG_NAND_ECCSTEPS (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
  159. #define CFG_NAND_OOBSIZE 16
  160. #define CFG_NAND_ECCTOTAL (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
  161. #define CFG_NAND_ECCPOS {0, 1, 2, 3, 6, 7}
  162. #ifdef CFG_ENV_IS_IN_NAND
  163. /*
  164. * For NAND booting the environment is embedded in the U-Boot image. Please take
  165. * look at the file board/amcc/sequoia/u-boot-nand.lds for details.
  166. */
  167. #define CFG_ENV_SIZE CFG_NAND_BLOCK_SIZE
  168. #define CFG_ENV_OFFSET (CFG_NAND_U_BOOT_OFFS + CFG_ENV_SIZE)
  169. #define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET + CFG_ENV_SIZE)
  170. #endif
  171. /*-----------------------------------------------------------------------
  172. * DDR SDRAM
  173. *----------------------------------------------------------------------*/
  174. #define CFG_MBYTES_SDRAM (256) /* 256MB */
  175. #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
  176. #define CONFIG_DDR_DATA_EYE /* use DDR2 optimization */
  177. #endif
  178. /*-----------------------------------------------------------------------
  179. * I2C
  180. *----------------------------------------------------------------------*/
  181. #define CONFIG_HARD_I2C 1 /* I2C with hardware support */
  182. #undef CONFIG_SOFT_I2C /* I2C bit-banged */
  183. #define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
  184. #define CFG_I2C_SLAVE 0x7F
  185. #define CFG_I2C_MULTI_EEPROMS
  186. #define CFG_I2C_EEPROM_ADDR (0xa8>>1)
  187. #define CFG_I2C_EEPROM_ADDR_LEN 1
  188. #define CFG_EEPROM_PAGE_WRITE_ENABLE
  189. #define CFG_EEPROM_PAGE_WRITE_BITS 3
  190. #define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
  191. /* I2C SYSMON (LM75, AD7414 is almost compatible) */
  192. #define CONFIG_DTT_LM75 1 /* ON Semi's LM75 */
  193. #define CONFIG_DTT_AD7414 1 /* use AD7414 */
  194. #define CONFIG_DTT_SENSORS {0} /* Sensor addresses */
  195. #define CFG_DTT_MAX_TEMP 70
  196. #define CFG_DTT_LOW_TEMP -30
  197. #define CFG_DTT_HYSTERESIS 3
  198. #define CONFIG_PREBOOT "echo;" \
  199. "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \
  200. "echo"
  201. #undef CONFIG_BOOTARGS
  202. /* Setup some board specific values for the default environment variables */
  203. #ifndef CONFIG_RAINIER
  204. #define CONFIG_HOSTNAME sequoia
  205. #define CFG_BOOTFILE "bootfile=/tftpboot/sequoia/uImage\0"
  206. #define CFG_ROOTPATH "rootpath=/opt/eldk/ppc_4xxFP\0"
  207. #else
  208. #define CONFIG_HOSTNAME rainier
  209. #define CFG_BOOTFILE "bootfile=/tftpboot/rainier/uImage\0"
  210. #define CFG_ROOTPATH "rootpath=/opt/eldk/ppc_4xx\0"
  211. #endif
  212. #define CONFIG_EXTRA_ENV_SETTINGS \
  213. CFG_BOOTFILE \
  214. CFG_ROOTPATH \
  215. "netdev=eth0\0" \
  216. "nfsargs=setenv bootargs root=/dev/nfs rw " \
  217. "nfsroot=${serverip}:${rootpath}\0" \
  218. "ramargs=setenv bootargs root=/dev/ram rw\0" \
  219. "addip=setenv bootargs ${bootargs} " \
  220. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
  221. ":${hostname}:${netdev}:off panic=1\0" \
  222. "addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0"\
  223. "flash_nfs=run nfsargs addip addtty;" \
  224. "bootm ${kernel_addr}\0" \
  225. "flash_self=run ramargs addip addtty;" \
  226. "bootm ${kernel_addr} ${ramdisk_addr}\0" \
  227. "net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;" \
  228. "bootm\0" \
  229. "kernel_addr=FC000000\0" \
  230. "ramdisk_addr=FC180000\0" \
  231. "load=tftp 200000 /tftpboot/${hostname}/u-boot.bin\0" \
  232. "update=protect off FFFA0000 FFFFFFFF;era FFFA0000 FFFFFFFF;" \
  233. "cp.b 200000 FFFA0000 60000\0" \
  234. "upd=run load;run update\0" \
  235. ""
  236. #define CONFIG_BOOTCOMMAND "run flash_self"
  237. #if 0
  238. #define CONFIG_BOOTDELAY -1 /* autoboot disabled */
  239. #else
  240. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  241. #endif
  242. #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
  243. #define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
  244. #define CONFIG_M88E1111_PHY 1
  245. #define CONFIG_IBM_EMAC4_V4 1
  246. #define CONFIG_MII 1 /* MII PHY management */
  247. #define CONFIG_PHY_ADDR 0 /* PHY address, See schematics */
  248. #define CONFIG_PHY_RESET 1 /* reset phy upon startup */
  249. #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
  250. #define CONFIG_HAS_ETH0
  251. #define CFG_RX_ETH_BUFFER 32 /* Number of ethernet rx buffers & descriptors */
  252. #define CONFIG_NET_MULTI 1
  253. #define CONFIG_HAS_ETH1 1 /* add support for "eth1addr" */
  254. #define CONFIG_PHY1_ADDR 1
  255. /* USB */
  256. #ifdef CONFIG_440EPX
  257. #define CONFIG_USB_OHCI
  258. #define CONFIG_USB_STORAGE
  259. /* Comment this out to enable USB 1.1 device */
  260. #define USB_2_0_DEVICE
  261. #define CMD_USB CFG_CMD_USB
  262. #else
  263. #define CMD_USB 0 /* no USB on 440GRx */
  264. #endif /* CONFIG_440EPX */
  265. /* Partitions */
  266. #define CONFIG_MAC_PARTITION
  267. #define CONFIG_DOS_PARTITION
  268. #define CONFIG_ISO_PARTITION
  269. #define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
  270. CFG_CMD_ASKENV | \
  271. CFG_CMD_DHCP | \
  272. CFG_CMD_DTT | \
  273. CFG_CMD_DIAG | \
  274. CFG_CMD_EEPROM | \
  275. CFG_CMD_ELF | \
  276. CFG_CMD_FAT | \
  277. CFG_CMD_I2C | \
  278. CFG_CMD_IRQ | \
  279. CFG_CMD_MII | \
  280. CFG_CMD_NAND | \
  281. CFG_CMD_NET | \
  282. CFG_CMD_NFS | \
  283. CFG_CMD_PCI | \
  284. CFG_CMD_PING | \
  285. CFG_CMD_REGINFO | \
  286. CFG_CMD_SDRAM | \
  287. CMD_USB)
  288. /* POST support */
  289. #define CONFIG_POST (CFG_POST_MEMORY | \
  290. CFG_POST_CPU | \
  291. CFG_POST_UART | \
  292. CFG_POST_I2C | \
  293. CFG_POST_SPR)
  294. #define CFG_POST_WORD_ADDR (CFG_GBL_DATA_OFFSET - 0x4)
  295. #define CONFIG_LOGBUFFER
  296. #define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
  297. #define CONFIG_SUPPORT_VFAT
  298. /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
  299. #include <cmd_confdefs.h>
  300. /*-----------------------------------------------------------------------
  301. * Miscellaneous configurable options
  302. *----------------------------------------------------------------------*/
  303. #define CFG_LONGHELP /* undef to save memory */
  304. #define CFG_PROMPT "=> " /* Monitor Command Prompt */
  305. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  306. #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
  307. #else
  308. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  309. #endif
  310. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  311. #define CFG_MAXARGS 16 /* max number of command args */
  312. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  313. #define CFG_MEMTEST_START 0x0400000 /* memtest works on */
  314. #define CFG_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */
  315. #define CFG_LOAD_ADDR 0x100000 /* default load address */
  316. #define CFG_EXTBDINFO 1 /* To use extended board_into (bd_t) */
  317. #define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
  318. #define CONFIG_CMDLINE_EDITING 1 /* add command line history */
  319. #define CONFIG_LOOPW 1 /* enable loopw command */
  320. #define CONFIG_MX_CYCLIC 1 /* enable mdc/mwc commands */
  321. #define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
  322. #define CONFIG_VERSION_VARIABLE 1 /* include version env variable */
  323. /*-----------------------------------------------------------------------
  324. * PCI stuff
  325. *----------------------------------------------------------------------*/
  326. /* General PCI */
  327. #define CONFIG_PCI /* include pci support */
  328. #undef CONFIG_PCI_PNP /* do (not) pci plug-and-play */
  329. #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
  330. #define CFG_PCI_TARGBASE 0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE*/
  331. /* Board-specific PCI */
  332. #define CFG_PCI_PRE_INIT /* enable board pci_pre_init() */
  333. #define CFG_PCI_TARGET_INIT
  334. #define CFG_PCI_MASTER_INIT
  335. #define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
  336. #define CFG_PCI_SUBSYS_ID 0xcafe /* Whatever */
  337. /*
  338. * For booting Linux, the board info and command line data
  339. * have to be in the first 8 MB of memory, since this is
  340. * the maximum mapped by the Linux kernel during initialization.
  341. */
  342. #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
  343. /*-----------------------------------------------------------------------
  344. * External Bus Controller (EBC) Setup
  345. *----------------------------------------------------------------------*/
  346. /*
  347. * On Sequoia CS0 and CS3 are switched when configuring for NAND booting
  348. */
  349. #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
  350. #define CFG_NAND_CS 3 /* NAND chip connected to CSx */
  351. /* Memory Bank 0 (NOR-FLASH) initialization */
  352. #define CFG_EBC_PB0AP 0x03017200
  353. #define CFG_EBC_PB0CR (CFG_FLASH_BASE | 0xda000)
  354. /* Memory Bank 3 (NAND-FLASH) initialization */
  355. #define CFG_EBC_PB3AP 0x018003c0
  356. #define CFG_EBC_PB3CR (CFG_NAND_ADDR | 0x1c000)
  357. #else
  358. #define CFG_NAND_CS 0 /* NAND chip connected to CSx */
  359. /* Memory Bank 3 (NOR-FLASH) initialization */
  360. #define CFG_EBC_PB3AP 0x03017200
  361. #define CFG_EBC_PB3CR (CFG_FLASH_BASE | 0xda000)
  362. /* Memory Bank 0 (NAND-FLASH) initialization */
  363. #define CFG_EBC_PB0AP 0x018003c0
  364. #define CFG_EBC_PB0CR (CFG_NAND_ADDR | 0x1c000)
  365. #endif
  366. /* Memory Bank 2 (CPLD) initialization */
  367. #define CFG_EBC_PB2AP 0x24814580
  368. #define CFG_EBC_PB2CR (CFG_BCSR_BASE | 0x38000)
  369. /*-----------------------------------------------------------------------
  370. * NAND FLASH
  371. *----------------------------------------------------------------------*/
  372. #define CFG_MAX_NAND_DEVICE 1
  373. #define NAND_MAX_CHIPS 1
  374. #define CFG_NAND_BASE (CFG_NAND_ADDR + CFG_NAND_CS)
  375. #define CFG_NAND_SELECT_DEVICE 1 /* nand driver supports mutipl. chips */
  376. /*-----------------------------------------------------------------------
  377. * Cache Configuration
  378. *----------------------------------------------------------------------*/
  379. #define CFG_DCACHE_SIZE (32<<10) /* For AMCC 440 CPUs */
  380. #define CFG_CACHELINE_SIZE 32 /* ... */
  381. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  382. #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
  383. #endif
  384. /*
  385. * Internal Definitions
  386. *
  387. * Boot Flags
  388. */
  389. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  390. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  391. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  392. #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
  393. #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
  394. #endif
  395. #endif /* __CONFIG_H */