sacsng.h 34 KB

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