sbc8260.h 34 KB

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