sbc8260.h 34 KB

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