sbc8260.h 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086
  1. /*
  2. * (C) Copyright 2000
  3. * Murray Jensen <Murray.Jensen@cmst.csiro.au>
  4. *
  5. * (C) Copyright 2000
  6. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  7. * Marius Groeger <mgroeger@sysgo.de>
  8. *
  9. * (C) Copyright 2001
  10. * Advent Networks, Inc. <http://www.adventnetworks.com>
  11. * Jay Monkman <jtm@smoothsmoothie.com>
  12. *
  13. * Configuration settings for the WindRiver SBC8260 board.
  14. * See http://www.windriver.com/products/html/sbc8260.html
  15. *
  16. * See file CREDITS for list of people who contributed to this
  17. * project.
  18. *
  19. * This program is free software; you can redistribute it and/or
  20. * modify it under the terms of the GNU General Public License as
  21. * published by the Free Software Foundation; either version 2 of
  22. * the License, or (at your option) any later version.
  23. *
  24. * This program is distributed in the hope that it will be useful,
  25. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27. * GNU General Public License for more details.
  28. *
  29. * You should have received a copy of the GNU General Public License
  30. * along with this program; if not, write to the Free Software
  31. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  32. * MA 02111-1307 USA
  33. */
  34. #ifndef __CONFIG_H
  35. #define __CONFIG_H
  36. /* Enable debug prints */
  37. #undef DEBUG /* General debug */
  38. #undef DEBUG_BOOTP_EXT /* Debug received vendor fields */
  39. /*****************************************************************************
  40. *
  41. * These settings must match the way _your_ board is set up
  42. *
  43. *****************************************************************************/
  44. /* What is the oscillator's (UX2) frequency in Hz? */
  45. #define CONFIG_8260_CLKIN (66 * 1000 * 1000)
  46. /*-----------------------------------------------------------------------
  47. * MODCK_H & MODCLK[1-3] - Ref: Section 9.2 in MPC8206 User Manual
  48. *-----------------------------------------------------------------------
  49. * What should MODCK_H be? It is dependent on the oscillator
  50. * frequency, MODCK[1-3], and desired CPM and core frequencies.
  51. * Here are some example values (all frequencies are in MHz):
  52. *
  53. * MODCK_H MODCK[1-3] Osc CPM Core S2-6 S2-7 S2-8
  54. * ------- ---------- --- --- ---- ----- ----- -----
  55. * 0x1 0x5 33 100 133 Open Close Open
  56. * 0x1 0x6 33 100 166 Open Open Close
  57. * 0x1 0x7 33 100 200 Open Open Open
  58. *
  59. * 0x2 0x2 33 133 133 Close Open Close
  60. * 0x2 0x3 33 133 166 Close Open Open
  61. * 0x2 0x4 33 133 200 Open Close Close
  62. * 0x2 0x5 33 133 233 Open Close Open
  63. * 0x2 0x6 33 133 266 Open Open Close
  64. *
  65. * 0x5 0x5 66 133 133 Open Close Open
  66. * 0x5 0x6 66 133 166 Open Open Close
  67. * 0x5 0x7 66 133 200 Open Open Open
  68. * 0x6 0x0 66 133 233 Close Close Close
  69. * 0x6 0x1 66 133 266 Close Close Open
  70. * 0x6 0x2 66 133 300 Close Open Close
  71. */
  72. #define CFG_SBC_MODCK_H 0x05
  73. /* Define this if you want to boot from 0x00000100. If you don't define
  74. * this, you will need to program the bootloader to 0xfff00000, and
  75. * get the hardware reset config words at 0xfe000000. The simplest
  76. * way to do that is to program the bootloader at both addresses.
  77. * It is suggested that you just let U-Boot live at 0x00000000.
  78. */
  79. #define CFG_SBC_BOOT_LOW 1
  80. /* What should the base address of the main FLASH be and how big is
  81. * it (in MBytes)? This must contain TEXT_BASE from board/sbc8260/config.mk
  82. * The main FLASH is whichever is connected to *CS0. U-Boot expects
  83. * this to be the SIMM.
  84. */
  85. #define CFG_FLASH0_BASE 0x40000000
  86. #define CFG_FLASH0_SIZE 4
  87. /* What should the base address of the secondary FLASH be and how big
  88. * is it (in Mbytes)? The secondary FLASH is whichever is connected
  89. * to *CS6. U-Boot expects this to be the on board FLASH. If you don't
  90. * want it enabled, don't define these constants.
  91. */
  92. #define CFG_FLASH1_BASE 0x60000000
  93. #define CFG_FLASH1_SIZE 2
  94. /* What should be the base address of SDRAM DIMM and how big is
  95. * it (in Mbytes)?
  96. */
  97. #define CFG_SDRAM0_BASE 0x00000000
  98. #define CFG_SDRAM0_SIZE 64
  99. /* What should be the base address of the LEDs and switch S0?
  100. * If you don't want them enabled, don't define this.
  101. */
  102. #define CFG_LED_BASE 0xa0000000
  103. /*
  104. * SBC8260 with 16 MB DIMM:
  105. *
  106. * 0x0000 0000 Exception Vector code, 8k
  107. * :
  108. * 0x0000 1FFF
  109. * 0x0000 2000 Free for Application Use
  110. * :
  111. * :
  112. *
  113. * :
  114. * :
  115. * 0x00F5 FF30 Monitor Stack (Growing downward)
  116. * Monitor Stack Buffer (0x80)
  117. * 0x00F5 FFB0 Board Info Data
  118. * 0x00F6 0000 Malloc Arena
  119. * : CFG_ENV_SECT_SIZE, 256k
  120. * : CFG_MALLOC_LEN, 128k
  121. * 0x00FC 0000 RAM Copy of Monitor Code
  122. * : CFG_MONITOR_LEN, 256k
  123. * 0x00FF FFFF [End of RAM], CFG_SDRAM_SIZE - 1
  124. */
  125. /*
  126. * SBC8260 with 64 MB DIMM:
  127. *
  128. * 0x0000 0000 Exception Vector code, 8k
  129. * :
  130. * 0x0000 1FFF
  131. * 0x0000 2000 Free for Application Use
  132. * :
  133. * :
  134. *
  135. * :
  136. * :
  137. * 0x03F5 FF30 Monitor Stack (Growing downward)
  138. * Monitor Stack Buffer (0x80)
  139. * 0x03F5 FFB0 Board Info Data
  140. * 0x03F6 0000 Malloc Arena
  141. * : CFG_ENV_SECT_SIZE, 256k
  142. * : CFG_MALLOC_LEN, 128k
  143. * 0x03FC 0000 RAM Copy of Monitor Code
  144. * : CFG_MONITOR_LEN, 256k
  145. * 0x03FF FFFF [End of RAM], CFG_SDRAM_SIZE - 1
  146. */
  147. /*
  148. * select serial console configuration
  149. *
  150. * if either CONFIG_CONS_ON_SMC or CONFIG_CONS_ON_SCC is selected, then
  151. * CONFIG_CONS_INDEX must be set to the channel number (1-2 for SMC, 1-4
  152. * for SCC).
  153. *
  154. * if CONFIG_CONS_NONE is defined, then the serial console routines must
  155. * defined elsewhere.
  156. */
  157. #define CONFIG_CONS_ON_SMC 1 /* define if console on SMC */
  158. #undef CONFIG_CONS_ON_SCC /* define if console on SCC */
  159. #undef CONFIG_CONS_NONE /* define if console on neither */
  160. #define CONFIG_CONS_INDEX 1 /* which SMC/SCC channel for console */
  161. /*
  162. * select ethernet configuration
  163. *
  164. * if either CONFIG_ETHER_ON_SCC or CONFIG_ETHER_ON_FCC is selected, then
  165. * CONFIG_ETHER_INDEX must be set to the channel number (1-4 for SCC, 1-3
  166. * for FCC)
  167. *
  168. * if CONFIG_ETHER_NONE is defined, then either the ethernet routines must be
  169. * defined elsewhere (as for the console), or CFG_CMD_NET must be removed
  170. * from CONFIG_COMMANDS to remove support for networking.
  171. */
  172. #undef CONFIG_ETHER_ON_SCC
  173. #define CONFIG_ETHER_ON_FCC
  174. #undef CONFIG_ETHER_NONE /* define if ethernet on neither */
  175. #ifdef CONFIG_ETHER_ON_SCC
  176. #define CONFIG_ETHER_INDEX 1 /* which SCC/FCC channel for ethernet */
  177. #endif /* CONFIG_ETHER_ON_SCC */
  178. #ifdef CONFIG_ETHER_ON_FCC
  179. #define CONFIG_ETHER_INDEX 2 /* which SCC/FCC channel for ethernet */
  180. #undef CONFIG_ETHER_LOOPBACK_TEST /* Ethernet external loopback test */
  181. #define CONFIG_MII /* MII PHY management */
  182. #define CONFIG_BITBANGMII /* bit-bang MII PHY management */
  183. /*
  184. * Port pins used for bit-banged MII communictions (if applicable).
  185. */
  186. #define MDIO_PORT 2 /* Port C */
  187. #define MDIO_ACTIVE (iop->pdir |= 0x00400000)
  188. #define MDIO_TRISTATE (iop->pdir &= ~0x00400000)
  189. #define MDIO_READ ((iop->pdat & 0x00400000) != 0)
  190. #define MDIO(bit) if(bit) iop->pdat |= 0x00400000; \
  191. else iop->pdat &= ~0x00400000
  192. #define MDC(bit) if(bit) iop->pdat |= 0x00200000; \
  193. else iop->pdat &= ~0x00200000
  194. #define MIIDELAY udelay(1)
  195. #endif /* CONFIG_ETHER_ON_FCC */
  196. #if defined(CONFIG_ETHER_ON_SCC) && (CONFIG_ETHER_INDEX == 1)
  197. /*
  198. * - RX clk is CLK11
  199. * - TX clk is CLK12
  200. */
  201. # define CFG_CMXSCR_VALUE (CMXSCR_RS1CS_CLK11 | CMXSCR_TS1CS_CLK12)
  202. #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
  203. /*
  204. * - Rx-CLK is CLK13
  205. * - Tx-CLK is CLK14
  206. * - Select bus for bd/buffers (see 28-13)
  207. * - Enable Full Duplex in FSMR
  208. */
  209. # define CFG_CMXFCR_MASK (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
  210. # define CFG_CMXFCR_VALUE (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
  211. # define CFG_CPMFCR_RAMTYPE 0
  212. # define CFG_FCC_PSMR (FCC_PSMR_FDE | FCC_PSMR_LPB)
  213. #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
  214. /*
  215. * Select SPI support configuration
  216. */
  217. #undef CONFIG_SPI /* Disable SPI driver */
  218. /*
  219. * Select i2c support configuration
  220. *
  221. * Supported configurations are {none, software, hardware} drivers.
  222. * If the software driver is chosen, there are some additional
  223. * configuration items that the driver uses to drive the port pins.
  224. */
  225. #undef CONFIG_HARD_I2C /* I2C with hardware support */
  226. #define CONFIG_SOFT_I2C 1 /* I2C bit-banged */
  227. #define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
  228. #define CFG_I2C_SLAVE 0x7F
  229. /*
  230. * Software (bit-bang) I2C driver configuration
  231. */
  232. #ifdef CONFIG_SOFT_I2C
  233. #define I2C_PORT 3 /* Port A=0, B=1, C=2, D=3 */
  234. #define I2C_ACTIVE (iop->pdir |= 0x00010000)
  235. #define I2C_TRISTATE (iop->pdir &= ~0x00010000)
  236. #define I2C_READ ((iop->pdat & 0x00010000) != 0)
  237. #define I2C_SDA(bit) if(bit) iop->pdat |= 0x00010000; \
  238. else iop->pdat &= ~0x00010000
  239. #define I2C_SCL(bit) if(bit) iop->pdat |= 0x00020000; \
  240. else iop->pdat &= ~0x00020000
  241. #define I2C_DELAY udelay(5) /* 1/4 I2C clock duration */
  242. #endif /* CONFIG_SOFT_I2C */
  243. /* Define this to reserve an entire FLASH sector (256 KB) for
  244. * environment variables. Otherwise, the environment will be
  245. * put in the same sector as U-Boot, and changing variables
  246. * will erase U-Boot temporarily
  247. */
  248. #define CFG_ENV_IN_OWN_SECT 1
  249. /* Define to allow the user to overwrite serial and ethaddr */
  250. #define CONFIG_ENV_OVERWRITE
  251. /* What should the console's baud rate be? */
  252. #define CONFIG_BAUDRATE 9600
  253. /* Ethernet MAC address
  254. * Note: We are using the EST Corporation OUI (00:a0:1e:xx:xx:xx)
  255. * http://standards.ieee.org/regauth/oui/index.shtml
  256. */
  257. #define CONFIG_ETHADDR 00:a0:1e:a8:7b:cb
  258. /*
  259. * Define this to set the last octet of the ethernet address from the
  260. * DS0-DS7 switch and light the LEDs with the result. The DS0-DS7
  261. * switch and the LEDs are backwards with respect to each other. DS7
  262. * is on the board edge side of both the LED strip and the DS0-DS7
  263. * switch.
  264. */
  265. #undef CONFIG_MISC_INIT_R
  266. /* Set to a positive value to delay for running BOOTCOMMAND */
  267. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  268. /* Be selective on what keys can delay or stop the autoboot process
  269. * To stop use: " "
  270. */
  271. #undef CONFIG_AUTOBOOT_KEYED
  272. #ifdef CONFIG_AUTOBOOT_KEYED
  273. # define CONFIG_AUTOBOOT_PROMPT "Autobooting in %d seconds, press \" \" to stop\n"
  274. # define CONFIG_AUTOBOOT_STOP_STR " "
  275. # undef CONFIG_AUTOBOOT_DELAY_STR
  276. # define DEBUG_BOOTKEYS 0
  277. #endif
  278. /* Define this to contain any number of null terminated strings that
  279. * will be part of the default enviroment compiled into the boot image.
  280. *
  281. * Variable Usage
  282. * -------------- -------------------------------------------------------
  283. * serverip server IP address
  284. * ipaddr my IP address
  285. * reprog Reload flash with a new copy of U-Boot
  286. * zapenv Erase the environment area in flash
  287. * root-on-initrd Set the bootcmd variable to allow booting of an initial
  288. * ram disk.
  289. * root-on-nfs Set the bootcmd variable to allow booting of a NFS
  290. * mounted root filesystem.
  291. * boot-hook Convenient stub to do something useful before the
  292. * bootm command is executed.
  293. *
  294. * Example usage of root-on-initrd and root-on-nfs :
  295. *
  296. * Note: The lines have been wrapped to improved its readability.
  297. *
  298. * => printenv bootcmd
  299. * bootcmd=version;echo;bootp;setenv bootargs root=/dev/nfs rw
  300. * nfsroot=${serverip}:${rootpath}
  301. * ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;run boot-hook;bootm
  302. *
  303. * => run root-on-initrd
  304. * => printenv bootcmd
  305. * bootcmd=version;echo;bootp;setenv bootargs root=/dev/ram0 rw
  306. * ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;run boot-hook;bootm
  307. *
  308. * => run root-on-nfs
  309. * => printenv bootcmd
  310. * bootcmd=version;echo;bootp;setenv bootargs root=/dev/nfs rw
  311. * nfsroot=${serverip}:${rootpath}
  312. * ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;run boot-hook;bootm
  313. *
  314. */
  315. #define CONFIG_EXTRA_ENV_SETTINGS \
  316. "serverip=192.168.123.205\0" \
  317. "ipaddr=192.168.123.213\0" \
  318. "reprog="\
  319. "bootp;" \
  320. "tftpboot 0x140000 /bdi2000/u-boot.bin;" \
  321. "protect off 1:0;" \
  322. "erase 1:0;" \
  323. "cp.b 140000 40000000 ${filesize};" \
  324. "protect on 1:0\0" \
  325. "zapenv="\
  326. "protect off 1:1;" \
  327. "erase 1:1;" \
  328. "protect on 1:1\0" \
  329. "root-on-initrd="\
  330. "setenv bootcmd "\
  331. "version;" \
  332. "echo;" \
  333. "bootp;" \
  334. "setenv bootargs root=/dev/ram0 rw " \
  335. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \
  336. "run boot-hook;" \
  337. "bootm\0" \
  338. "root-on-nfs="\
  339. "setenv bootcmd "\
  340. "version;" \
  341. "echo;" \
  342. "bootp;" \
  343. "setenv bootargs root=/dev/nfs rw " \
  344. "nfsroot=${serverip}:${rootpath} " \
  345. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \
  346. "run boot-hook;" \
  347. "bootm\0" \
  348. "boot-hook=echo\0"
  349. /* Define a command string that is automatically executed when no character
  350. * is read on the console interface withing "Boot Delay" after reset.
  351. */
  352. #undef CONFIG_BOOT_ROOT_INITRD /* Use ram disk for the root file system */
  353. #define CONFIG_BOOT_ROOT_NFS /* Use a NFS mounted root file system */
  354. #ifdef CONFIG_BOOT_ROOT_INITRD
  355. #define CONFIG_BOOTCOMMAND \
  356. "version;" \
  357. "echo;" \
  358. "bootp;" \
  359. "setenv bootargs root=/dev/ram0 rw " \
  360. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \
  361. "bootm"
  362. #endif /* CONFIG_BOOT_ROOT_INITRD */
  363. #ifdef CONFIG_BOOT_ROOT_NFS
  364. #define CONFIG_BOOTCOMMAND \
  365. "version;" \
  366. "echo;" \
  367. "bootp;" \
  368. "setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} " \
  369. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \
  370. "bootm"
  371. #endif /* CONFIG_BOOT_ROOT_NFS */
  372. /* Add support for a few extra bootp options like:
  373. * - File size
  374. * - DNS (up to 2 servers)
  375. * - Send hostname to DHCP server
  376. */
  377. #define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT | \
  378. CONFIG_BOOTP_BOOTFILESIZE | \
  379. CONFIG_BOOTP_DNS | \
  380. CONFIG_BOOTP_DNS2 | \
  381. CONFIG_BOOTP_SEND_HOSTNAME)
  382. /* undef this to save memory */
  383. #define CFG_LONGHELP
  384. /* Monitor Command Prompt */
  385. #define CFG_PROMPT "=> "
  386. #undef CFG_HUSH_PARSER
  387. #ifdef CFG_HUSH_PARSER
  388. #define CFG_PROMPT_HUSH_PS2 "> "
  389. #endif
  390. /* When CONFIG_TIMESTAMP is selected, the timestamp (date and time)
  391. * of an image is printed by image commands like bootm or iminfo.
  392. */
  393. #define CONFIG_TIMESTAMP
  394. /* If this variable is defined, an environment variable named "ver"
  395. * is created by U-Boot showing the U-Boot version.
  396. */
  397. #define CONFIG_VERSION_VARIABLE
  398. /* What U-Boot subsytems do you want enabled? */
  399. #ifdef CONFIG_ETHER_ON_FCC
  400. # define CONFIG_COMMANDS (((CONFIG_CMD_DFL & ~(CFG_CMD_KGDB))) | \
  401. CFG_CMD_ASKENV | \
  402. CFG_CMD_ELF | \
  403. CFG_CMD_I2C | \
  404. CFG_CMD_IMMAP | \
  405. CFG_CMD_MII | \
  406. CFG_CMD_PING | \
  407. CFG_CMD_REGINFO | \
  408. CFG_CMD_SDRAM )
  409. #else
  410. # define CONFIG_COMMANDS (((CONFIG_CMD_DFL & ~(CFG_CMD_KGDB))) | \
  411. CFG_CMD_ASKENV | \
  412. CFG_CMD_ELF | \
  413. CFG_CMD_I2C | \
  414. CFG_CMD_IMMAP | \
  415. CFG_CMD_PING | \
  416. CFG_CMD_REGINFO | \
  417. CFG_CMD_SDRAM )
  418. #endif /* CONFIG_ETHER_ON_FCC */
  419. #undef CONFIG_WATCHDOG /* disable the watchdog */
  420. /* Where do the internal registers live? */
  421. #define CFG_IMMR 0xF0000000
  422. /*****************************************************************************
  423. *
  424. * You should not have to modify any of the following settings
  425. *
  426. *****************************************************************************/
  427. #define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
  428. #define CONFIG_SBC8260 1 /* on an EST SBC8260 Board */
  429. #define CONFIG_CPM2 1 /* Has a CPM2 */
  430. /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
  431. #include <cmd_confdefs.h>
  432. /*
  433. * Miscellaneous configurable options
  434. */
  435. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  436. # define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
  437. #else
  438. # define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  439. #endif
  440. /* Print Buffer Size */
  441. #define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
  442. #define CFG_MAXARGS 32 /* max number of command args */
  443. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  444. #define CFG_LOAD_ADDR 0x400000 /* default load address */
  445. #define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
  446. #define CFG_ALT_MEMTEST /* Select full-featured memory test */
  447. #define CFG_MEMTEST_START 0x2000 /* memtest works from the end of */
  448. /* the exception vector table */
  449. /* to the end of the DRAM */
  450. /* less monitor and malloc area */
  451. #define CFG_STACK_USAGE 0x10000 /* Reserve 64k for the stack usage */
  452. #define CFG_MEM_END_USAGE ( CFG_MONITOR_LEN \
  453. + CFG_MALLOC_LEN \
  454. + CFG_ENV_SECT_SIZE \
  455. + CFG_STACK_USAGE )
  456. #define CFG_MEMTEST_END ( CFG_SDRAM_SIZE * 1024 * 1024 \
  457. - CFG_MEM_END_USAGE )
  458. /* valid baudrates */
  459. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  460. /*
  461. * Low Level Configuration Settings
  462. * (address mappings, register initial values, etc.)
  463. * You should know what you are doing if you make changes here.
  464. */
  465. #define CFG_FLASH_BASE CFG_FLASH0_BASE
  466. #define CFG_FLASH_SIZE CFG_FLASH0_SIZE
  467. #define CFG_SDRAM_BASE CFG_SDRAM0_BASE
  468. #define CFG_SDRAM_SIZE CFG_SDRAM0_SIZE
  469. /*-----------------------------------------------------------------------
  470. * Hard Reset Configuration Words
  471. */
  472. #if defined(CFG_SBC_BOOT_LOW)
  473. # define CFG_SBC_HRCW_BOOT_FLAGS (HRCW_CIP | HRCW_BMS)
  474. #else
  475. # define CFG_SBC_HRCW_BOOT_FLAGS (0)
  476. #endif /* defined(CFG_SBC_BOOT_LOW) */
  477. /* get the HRCW ISB field from CFG_IMMR */
  478. #define CFG_SBC_HRCW_IMMR ( ((CFG_IMMR & 0x10000000) >> 10) | \
  479. ((CFG_IMMR & 0x01000000) >> 7) | \
  480. ((CFG_IMMR & 0x00100000) >> 4) )
  481. #define CFG_HRCW_MASTER ( HRCW_BPS11 | \
  482. HRCW_DPPC11 | \
  483. CFG_SBC_HRCW_IMMR | \
  484. HRCW_MMR00 | \
  485. HRCW_LBPC11 | \
  486. HRCW_APPC10 | \
  487. HRCW_CS10PC00 | \
  488. (CFG_SBC_MODCK_H & HRCW_MODCK_H1111) | \
  489. CFG_SBC_HRCW_BOOT_FLAGS )
  490. /* no slaves */
  491. #define CFG_HRCW_SLAVE1 0
  492. #define CFG_HRCW_SLAVE2 0
  493. #define CFG_HRCW_SLAVE3 0
  494. #define CFG_HRCW_SLAVE4 0
  495. #define CFG_HRCW_SLAVE5 0
  496. #define CFG_HRCW_SLAVE6 0
  497. #define CFG_HRCW_SLAVE7 0
  498. /*-----------------------------------------------------------------------
  499. * Definitions for initial stack pointer and data area (in DPRAM)
  500. */
  501. #define CFG_INIT_RAM_ADDR CFG_IMMR
  502. #define CFG_INIT_RAM_END 0x4000 /* End of used area in DPRAM */
  503. #define CFG_GBL_DATA_SIZE 128 /* bytes reserved for initial data */
  504. #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
  505. #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET
  506. /*-----------------------------------------------------------------------
  507. * Start addresses for the final memory configuration
  508. * (Set up by the startup code)
  509. * Please note that CFG_SDRAM_BASE _must_ start at 0
  510. * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
  511. */
  512. #define CFG_MONITOR_BASE CFG_FLASH0_BASE
  513. #if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
  514. # define CFG_RAMBOOT
  515. #endif
  516. #define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
  517. #define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
  518. /*
  519. * For booting Linux, the board info and command line data
  520. * have to be in the first 8 MB of memory, since this is
  521. * the maximum mapped by the Linux kernel during initialization.
  522. */
  523. #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
  524. /*-----------------------------------------------------------------------
  525. * FLASH and environment organization
  526. */
  527. #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
  528. #define CFG_MAX_FLASH_SECT 16 /* max number of sectors on one chip */
  529. #define CFG_FLASH_ERASE_TOUT 8000 /* Timeout for Flash Erase (in ms) */
  530. #define CFG_FLASH_WRITE_TOUT 1 /* Timeout for Flash Write (in ms) */
  531. #ifndef CFG_RAMBOOT
  532. # define CFG_ENV_IS_IN_FLASH 1
  533. # ifdef CFG_ENV_IN_OWN_SECT
  534. # define CFG_ENV_ADDR (CFG_MONITOR_BASE + 0x40000)
  535. # define CFG_ENV_SECT_SIZE 0x40000
  536. # else
  537. # define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_MONITOR_LEN - CFG_ENV_SECT_SIZE)
  538. # define CFG_ENV_SIZE 0x1000 /* Total Size of Environment Sector */
  539. # define CFG_ENV_SECT_SIZE 0x10000 /* see README - env sect real size */
  540. # endif /* CFG_ENV_IN_OWN_SECT */
  541. #else
  542. # define CFG_ENV_IS_IN_NVRAM 1
  543. # define CFG_ENV_ADDR (CFG_MONITOR_BASE - 0x1000)
  544. # define CFG_ENV_SIZE 0x200
  545. #endif /* CFG_RAMBOOT */
  546. /*-----------------------------------------------------------------------
  547. * Cache Configuration
  548. */
  549. #define CFG_CACHELINE_SIZE 32 /* For MPC8260 CPU */
  550. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  551. # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
  552. #endif
  553. /*-----------------------------------------------------------------------
  554. * HIDx - Hardware Implementation-dependent Registers 2-11
  555. *-----------------------------------------------------------------------
  556. * HID0 also contains cache control - initially enable both caches and
  557. * invalidate contents, then the final state leaves only the instruction
  558. * cache enabled. Note that Power-On and Hard reset invalidate the caches,
  559. * but Soft reset does not.
  560. *
  561. * HID1 has only read-only information - nothing to set.
  562. */
  563. #define CFG_HID0_INIT (HID0_ICE |\
  564. HID0_DCE |\
  565. HID0_ICFI |\
  566. HID0_DCI |\
  567. HID0_IFEM |\
  568. HID0_ABE)
  569. #define CFG_HID0_FINAL (HID0_ICE |\
  570. HID0_IFEM |\
  571. HID0_ABE |\
  572. HID0_EMCP)
  573. #define CFG_HID2 0
  574. /*-----------------------------------------------------------------------
  575. * RMR - Reset Mode Register
  576. *-----------------------------------------------------------------------
  577. */
  578. #define CFG_RMR 0
  579. /*-----------------------------------------------------------------------
  580. * BCR - Bus Configuration 4-25
  581. *-----------------------------------------------------------------------
  582. */
  583. #define CFG_BCR (BCR_ETM)
  584. /*-----------------------------------------------------------------------
  585. * SIUMCR - SIU Module Configuration 4-31
  586. *-----------------------------------------------------------------------
  587. */
  588. #define CFG_SIUMCR (SIUMCR_DPPC11 |\
  589. SIUMCR_L2CPC00 |\
  590. SIUMCR_APPC10 |\
  591. SIUMCR_MMR00)
  592. /*-----------------------------------------------------------------------
  593. * SYPCR - System Protection Control 11-9
  594. * SYPCR can only be written once after reset!
  595. *-----------------------------------------------------------------------
  596. * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  597. */
  598. #if defined(CONFIG_WATCHDOG)
  599. #define CFG_SYPCR (SYPCR_SWTC |\
  600. SYPCR_BMT |\
  601. SYPCR_PBME |\
  602. SYPCR_LBME |\
  603. SYPCR_SWRI |\
  604. SYPCR_SWP |\
  605. SYPCR_SWE)
  606. #else
  607. #define CFG_SYPCR (SYPCR_SWTC |\
  608. SYPCR_BMT |\
  609. SYPCR_PBME |\
  610. SYPCR_LBME |\
  611. SYPCR_SWRI |\
  612. SYPCR_SWP)
  613. #endif /* CONFIG_WATCHDOG */
  614. /*-----------------------------------------------------------------------
  615. * TMCNTSC - Time Counter Status and Control 4-40
  616. *-----------------------------------------------------------------------
  617. * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  618. * and enable Time Counter
  619. */
  620. #define CFG_TMCNTSC (TMCNTSC_SEC |\
  621. TMCNTSC_ALR |\
  622. TMCNTSC_TCF |\
  623. TMCNTSC_TCE)
  624. /*-----------------------------------------------------------------------
  625. * PISCR - Periodic Interrupt Status and Control 4-42
  626. *-----------------------------------------------------------------------
  627. * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  628. * Periodic timer
  629. */
  630. #define CFG_PISCR (PISCR_PS |\
  631. PISCR_PTF |\
  632. PISCR_PTE)
  633. /*-----------------------------------------------------------------------
  634. * SCCR - System Clock Control 9-8
  635. *-----------------------------------------------------------------------
  636. */
  637. #define CFG_SCCR 0
  638. /*-----------------------------------------------------------------------
  639. * RCCR - RISC Controller Configuration 13-7
  640. *-----------------------------------------------------------------------
  641. */
  642. #define CFG_RCCR 0
  643. /*
  644. * Initialize Memory Controller:
  645. *
  646. * Bank Bus Machine PortSz Device
  647. * ---- --- ------- ------ ------
  648. * 0 60x GPCM 32 bit FLASH (SIMM - 4MB) *
  649. * 1 60x GPCM 32 bit FLASH (SIMM - Unused)
  650. * 2 60x SDRAM 64 bit SDRAM (DIMM - 16MB or 64MB)
  651. * 3 60x SDRAM 64 bit SDRAM (DIMM - Unused)
  652. * 4 Local SDRAM 32 bit SDRAM (on board - 4MB)
  653. * 5 60x GPCM 8 bit EEPROM (8KB)
  654. * 6 60x GPCM 8 bit FLASH (on board - 2MB) *
  655. * 7 60x GPCM 8 bit LEDs, switches
  656. *
  657. * (*) This configuration requires the SBC8260 be configured
  658. * so that *CS0 goes to the FLASH SIMM, and *CS6 goes to
  659. * the on board FLASH. In other words, JP24 should have
  660. * pins 1 and 2 jumpered and pins 3 and 4 jumpered.
  661. *
  662. */
  663. /*-----------------------------------------------------------------------
  664. * BR0,BR1 - Base Register
  665. * Ref: Section 10.3.1 on page 10-14
  666. * OR0,OR1 - Option Register
  667. * Ref: Section 10.3.2 on page 10-18
  668. *-----------------------------------------------------------------------
  669. */
  670. /* Bank 0,1 - FLASH SIMM
  671. *
  672. * This expects the FLASH SIMM to be connected to *CS0
  673. * It consists of 4 AM29F080B parts.
  674. *
  675. * Note: For the 4 MB SIMM, *CS1 is unused.
  676. */
  677. /* BR0 is configured as follows:
  678. *
  679. * - Base address of 0x40000000
  680. * - 32 bit port size
  681. * - Data errors checking is disabled
  682. * - Read and write access
  683. * - GPCM 60x bus
  684. * - Access are handled by the memory controller according to MSEL
  685. * - Not used for atomic operations
  686. * - No data pipelining is done
  687. * - Valid
  688. */
  689. #define CFG_BR0_PRELIM ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
  690. BRx_PS_32 |\
  691. BRx_MS_GPCM_P |\
  692. BRx_V)
  693. /* OR0 is configured as follows:
  694. *
  695. * - 4 MB
  696. * - *BCTL0 is asserted upon access to the current memory bank
  697. * - *CW / *WE are negated a quarter of a clock earlier
  698. * - *CS is output at the same time as the address lines
  699. * - Uses a clock cycle length of 5
  700. * - *PSDVAL is generated internally by the memory controller
  701. * unless *GTA is asserted earlier externally.
  702. * - Relaxed timing is generated by the GPCM for accesses
  703. * initiated to this memory region.
  704. * - One idle clock is inserted between a read access from the
  705. * current bank and the next access.
  706. */
  707. #define CFG_OR0_PRELIM (MEG_TO_AM(CFG_FLASH0_SIZE) |\
  708. ORxG_CSNT |\
  709. ORxG_ACS_DIV1 |\
  710. ORxG_SCY_5_CLK |\
  711. ORxG_TRLX |\
  712. ORxG_EHTR)
  713. /*-----------------------------------------------------------------------
  714. * BR2,BR3 - Base Register
  715. * Ref: Section 10.3.1 on page 10-14
  716. * OR2,OR3 - Option Register
  717. * Ref: Section 10.3.2 on page 10-16
  718. *-----------------------------------------------------------------------
  719. */
  720. /* Bank 2,3 - SDRAM DIMM
  721. *
  722. * 16MB DIMM: P/N
  723. * 64MB DIMM: P/N 1W-8864X8-4-P1-EST
  724. *
  725. * Note: *CS3 is unused for this DIMM
  726. */
  727. /* With a 16 MB or 64 MB DIMM, the BR2 is configured as follows:
  728. *
  729. * - Base address of 0x00000000
  730. * - 64 bit port size (60x bus only)
  731. * - Data errors checking is disabled
  732. * - Read and write access
  733. * - SDRAM 60x bus
  734. * - Access are handled by the memory controller according to MSEL
  735. * - Not used for atomic operations
  736. * - No data pipelining is done
  737. * - Valid
  738. */
  739. #define CFG_BR2_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
  740. BRx_PS_64 |\
  741. BRx_MS_SDRAM_P |\
  742. BRx_V)
  743. #define CFG_BR3_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
  744. BRx_PS_64 |\
  745. BRx_MS_SDRAM_P |\
  746. BRx_V)
  747. /* With a 16 MB DIMM, the OR2 is configured as follows:
  748. *
  749. * - 16 MB
  750. * - 2 internal banks per device
  751. * - Row start address bit is A9 with PSDMR[PBI] = 0
  752. * - 11 row address lines
  753. * - Back-to-back page mode
  754. * - Internal bank interleaving within save device enabled
  755. */
  756. #if (CFG_SDRAM0_SIZE == 16)
  757. #define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM0_SIZE) |\
  758. ORxS_BPD_2 |\
  759. ORxS_ROWST_PBI0_A9 |\
  760. ORxS_NUMR_11)
  761. #endif
  762. /* With a 64 MB DIMM, the OR2 is configured as follows:
  763. *
  764. * - 64 MB
  765. * - 4 internal banks per device
  766. * - Row start address bit is A8 with PSDMR[PBI] = 0
  767. * - 12 row address lines
  768. * - Back-to-back page mode
  769. * - Internal bank interleaving within save device enabled
  770. */
  771. #if (CFG_SDRAM0_SIZE == 64)
  772. #define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM0_SIZE) |\
  773. ORxS_BPD_4 |\
  774. ORxS_ROWST_PBI0_A8 |\
  775. ORxS_NUMR_12)
  776. #endif
  777. /*-----------------------------------------------------------------------
  778. * PSDMR - 60x Bus SDRAM Mode Register
  779. * Ref: Section 10.3.3 on page 10-21
  780. *-----------------------------------------------------------------------
  781. */
  782. /* Address that the DIMM SPD memory lives at.
  783. */
  784. #define SDRAM_SPD_ADDR 0x54
  785. #if (CFG_SDRAM0_SIZE == 16)
  786. /* With a 16 MB DIMM, the PSDMR is configured as follows:
  787. *
  788. * - Bank Based Interleaving,
  789. * - Refresh Enable,
  790. * - Address Multiplexing where A5 is output on A14 pin
  791. * (A6 on A15, and so on),
  792. * - use address pins A16-A18 as bank select,
  793. * - A9 is output on SDA10 during an ACTIVATE command,
  794. * - earliest timing for ACTIVATE command after REFRESH command is 7 clocks,
  795. * - earliest timing for ACTIVATE or REFRESH command after PRECHARGE command
  796. * is 3 clocks,
  797. * - earliest timing for READ/WRITE command after ACTIVATE command is
  798. * 2 clocks,
  799. * - earliest timing for PRECHARGE after last data was read is 1 clock,
  800. * - earliest timing for PRECHARGE after last data was written is 1 clock,
  801. * - CAS Latency is 2.
  802. */
  803. #define CFG_PSDMR (PSDMR_RFEN |\
  804. PSDMR_SDAM_A14_IS_A5 |\
  805. PSDMR_BSMA_A16_A18 |\
  806. PSDMR_SDA10_PBI0_A9 |\
  807. PSDMR_RFRC_7_CLK |\
  808. PSDMR_PRETOACT_3W |\
  809. PSDMR_ACTTORW_2W |\
  810. PSDMR_LDOTOPRE_1C |\
  811. PSDMR_WRC_1C |\
  812. PSDMR_CL_2)
  813. #endif
  814. #if (CFG_SDRAM0_SIZE == 64)
  815. /* With a 64 MB DIMM, the PSDMR is configured as follows:
  816. *
  817. * - Bank Based Interleaving,
  818. * - Refresh Enable,
  819. * - Address Multiplexing where A5 is output on A14 pin
  820. * (A6 on A15, and so on),
  821. * - use address pins A14-A16 as bank select,
  822. * - A9 is output on SDA10 during an ACTIVATE command,
  823. * - earliest timing for ACTIVATE command after REFRESH command is 7 clocks,
  824. * - earliest timing for ACTIVATE or REFRESH command after PRECHARGE command
  825. * is 3 clocks,
  826. * - earliest timing for READ/WRITE command after ACTIVATE command is
  827. * 2 clocks,
  828. * - earliest timing for PRECHARGE after last data was read is 1 clock,
  829. * - earliest timing for PRECHARGE after last data was written is 1 clock,
  830. * - CAS Latency is 2.
  831. */
  832. #define CFG_PSDMR (PSDMR_RFEN |\
  833. PSDMR_SDAM_A14_IS_A5 |\
  834. PSDMR_BSMA_A14_A16 |\
  835. PSDMR_SDA10_PBI0_A9 |\
  836. PSDMR_RFRC_7_CLK |\
  837. PSDMR_PRETOACT_3W |\
  838. PSDMR_ACTTORW_2W |\
  839. PSDMR_LDOTOPRE_1C |\
  840. PSDMR_WRC_1C |\
  841. PSDMR_CL_2)
  842. #endif
  843. /*
  844. * Shoot for approximately 1MHz on the prescaler.
  845. */
  846. #if (CONFIG_8260_CLKIN == (66 * 1000 * 1000))
  847. #define CFG_MPTPR MPTPR_PTP_DIV64
  848. #elif (CONFIG_8260_CLKIN == (33 * 1000 * 1000))
  849. #define CFG_MPTPR MPTPR_PTP_DIV32
  850. #else
  851. #warning "Unconfigured bus clock freq: check CFG_MPTPR and CFG_PSRT are OK"
  852. #define CFG_MPTPR MPTPR_PTP_DIV32
  853. #endif
  854. #define CFG_PSRT 14
  855. /* Bank 4 - On board SDRAM
  856. *
  857. * This is not implemented yet.
  858. */
  859. /*-----------------------------------------------------------------------
  860. * BR6 - Base Register
  861. * Ref: Section 10.3.1 on page 10-14
  862. * OR6 - Option Register
  863. * Ref: Section 10.3.2 on page 10-18
  864. *-----------------------------------------------------------------------
  865. */
  866. /* Bank 6 - On board FLASH
  867. *
  868. * This expects the on board FLASH SIMM to be connected to *CS6
  869. * It consists of 1 AM29F016A part.
  870. */
  871. #if (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE))
  872. /* BR6 is configured as follows:
  873. *
  874. * - Base address of 0x60000000
  875. * - 8 bit port size
  876. * - Data errors checking is disabled
  877. * - Read and write access
  878. * - GPCM 60x bus
  879. * - Access are handled by the memory controller according to MSEL
  880. * - Not used for atomic operations
  881. * - No data pipelining is done
  882. * - Valid
  883. */
  884. # define CFG_BR6_PRELIM ((CFG_FLASH1_BASE & BRx_BA_MSK) |\
  885. BRx_PS_8 |\
  886. BRx_MS_GPCM_P |\
  887. BRx_V)
  888. /* OR6 is configured as follows:
  889. *
  890. * - 2 MB
  891. * - *BCTL0 is asserted upon access to the current memory bank
  892. * - *CW / *WE are negated a quarter of a clock earlier
  893. * - *CS is output at the same time as the address lines
  894. * - Uses a clock cycle length of 5
  895. * - *PSDVAL is generated internally by the memory controller
  896. * unless *GTA is asserted earlier externally.
  897. * - Relaxed timing is generated by the GPCM for accesses
  898. * initiated to this memory region.
  899. * - One idle clock is inserted between a read access from the
  900. * current bank and the next access.
  901. */
  902. # define CFG_OR6_PRELIM (MEG_TO_AM(CFG_FLASH1_SIZE) |\
  903. ORxG_CSNT |\
  904. ORxG_ACS_DIV1 |\
  905. ORxG_SCY_5_CLK |\
  906. ORxG_TRLX |\
  907. ORxG_EHTR)
  908. #endif /* (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE)) */
  909. /*-----------------------------------------------------------------------
  910. * BR7 - Base Register
  911. * Ref: Section 10.3.1 on page 10-14
  912. * OR7 - Option Register
  913. * Ref: Section 10.3.2 on page 10-18
  914. *-----------------------------------------------------------------------
  915. */
  916. /* Bank 7 - LEDs and switches
  917. *
  918. * LEDs are at 0x00001 (write only)
  919. * switches are at 0x00001 (read only)
  920. */
  921. #ifdef CFG_LED_BASE
  922. /* BR7 is configured as follows:
  923. *
  924. * - Base address of 0xA0000000
  925. * - 8 bit port size
  926. * - Data errors checking is disabled
  927. * - Read and write access
  928. * - GPCM 60x bus
  929. * - Access are handled by the memory controller according to MSEL
  930. * - Not used for atomic operations
  931. * - No data pipelining is done
  932. * - Valid
  933. */
  934. # define CFG_BR7_PRELIM ((CFG_LED_BASE & BRx_BA_MSK) |\
  935. BRx_PS_8 |\
  936. BRx_MS_GPCM_P |\
  937. BRx_V)
  938. /* OR7 is configured as follows:
  939. *
  940. * - 1 byte
  941. * - *BCTL0 is asserted upon access to the current memory bank
  942. * - *CW / *WE are negated a quarter of a clock earlier
  943. * - *CS is output at the same time as the address lines
  944. * - Uses a clock cycle length of 15
  945. * - *PSDVAL is generated internally by the memory controller
  946. * unless *GTA is asserted earlier externally.
  947. * - Relaxed timing is generated by the GPCM for accesses
  948. * initiated to this memory region.
  949. * - One idle clock is inserted between a read access from the
  950. * current bank and the next access.
  951. */
  952. # define CFG_OR7_PRELIM (ORxG_AM_MSK |\
  953. ORxG_CSNT |\
  954. ORxG_ACS_DIV1 |\
  955. ORxG_SCY_15_CLK |\
  956. ORxG_TRLX |\
  957. ORxG_EHTR)
  958. #endif /* CFG_LED_BASE */
  959. /*
  960. * Internal Definitions
  961. *
  962. * Boot Flags
  963. */
  964. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  965. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  966. #endif /* __CONFIG_H */