sacsng.h 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064
  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. /* Add support for a few extra bootp options like:
  416. * - File size
  417. * - DNS (up to 2 servers)
  418. * - Send hostname to DHCP server
  419. */
  420. #define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT | \
  421. CONFIG_BOOTP_BOOTFILESIZE | \
  422. CONFIG_BOOTP_DNS | \
  423. CONFIG_BOOTP_DNS2 | \
  424. CONFIG_BOOTP_SEND_HOSTNAME)
  425. /* undef this to save memory */
  426. #define CFG_LONGHELP
  427. /* Monitor Command Prompt */
  428. #define CFG_PROMPT "=> "
  429. #undef CFG_HUSH_PARSER
  430. #ifdef CFG_HUSH_PARSER
  431. #define CFG_PROMPT_HUSH_PS2 "> "
  432. #endif
  433. /* When CONFIG_TIMESTAMP is selected, the timestamp (date and time)
  434. * of an image is printed by image commands like bootm or iminfo.
  435. */
  436. #define CONFIG_TIMESTAMP
  437. /* If this variable is defined, an environment variable named "ver"
  438. * is created by U-Boot showing the U-Boot version.
  439. */
  440. #define CONFIG_VERSION_VARIABLE
  441. /*
  442. * Command line configuration.
  443. */
  444. #include <config_cmd_default.h>
  445. #define CONFIG_CMD_ELF
  446. #define CONFIG_CMD_ASKENV
  447. #define CONFIG_CMD_I2C
  448. #define CONFIG_CMD_SPI
  449. #define CONFIG_CMD_SDRAM
  450. #define CONFIG_CMD_REGINFO
  451. #define CONFIG_CMD_IMMAP
  452. #define CONFIG_CMD_IRQ
  453. #define CONFIG_CMD_PING
  454. #undef CONFIG_CMD_KGDB
  455. #ifdef CONFIG_ETHER_ON_FCC
  456. #define CONFIG_CMD_MII
  457. #endif
  458. /* Where do the internal registers live? */
  459. #define CFG_IMMR 0xF0000000
  460. #undef CONFIG_WATCHDOG /* disable the watchdog */
  461. /*****************************************************************************
  462. *
  463. * You should not have to modify any of the following settings
  464. *
  465. *****************************************************************************/
  466. #define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
  467. #define CONFIG_SBC8260 1 /* on an EST SBC8260 Board */
  468. #define CONFIG_SACSng 1 /* munged for the SACSng */
  469. #define CONFIG_CPM2 1 /* Has a CPM2 */
  470. /*
  471. * Miscellaneous configurable options
  472. */
  473. #define CFG_BOOTM_HEADER_QUIET 1 /* Suppress the image header dump */
  474. /* in the bootm command. */
  475. #define CFG_BOOTM_PROGESS_QUIET 1 /* Suppress the progress displays, */
  476. /* "## <message>" from the bootm cmd */
  477. #define CFG_BOOTP_CHECK_HOSTNAME 1 /* If checkhostname environment is */
  478. /* defined, then the hostname param */
  479. /* validated against checkhostname. */
  480. #define CFG_BOOTP_RETRY_COUNT 0x40000000 /* # of timeouts before giving up */
  481. #define CFG_BOOTP_SHORT_RANDOM_DELAY 1 /* Use a short random delay value */
  482. /* (limited to maximum of 1024 msec) */
  483. #define CFG_CHK_FOR_ABORT_AT_LEAST_ONCE 1
  484. /* Check for abort key presses */
  485. /* at least once in dependent of the */
  486. /* CONFIG_BOOTDELAY value. */
  487. #define CFG_CONSOLE_INFO_QUIET 1 /* Don't print console @ startup */
  488. #define CFG_FAULT_ECHO_LINK_DOWN 1 /* Echo the inverted Ethernet link */
  489. /* state to the fault LED. */
  490. #define CFG_FAULT_MII_ADDR 0x02 /* MII addr of the PHY to check for */
  491. /* the Ethernet link state. */
  492. #define CFG_STATUS_FLASH_UNTIL_TFTP_OK 1 /* Keeping the status LED flashing */
  493. /* until the TFTP is successful. */
  494. #define CFG_STATUS_OFF_AFTER_NETBOOT 1 /* After a successful netboot, */
  495. /* turn off the STATUS LEDs. */
  496. #define CFG_TFTP_BLINK_STATUS_ON_DATA_IN 1 /* Blink status LED based on */
  497. /* incoming data. */
  498. #define CFG_TFTP_BLOCKS_PER_HASH 100 /* For every XX blocks, output a '#' */
  499. /* to signify that tftp is moving. */
  500. #define CFG_TFTP_HASHES_PER_FLASH 200 /* For every '#' hashes, */
  501. /* flash the status LED. */
  502. #define CFG_TFTP_HASHES_PER_LINE 65 /* Only output XX '#'s per line */
  503. /* during the tftp file transfer. */
  504. #define CFG_TFTP_PROGESS_QUIET 1 /* Suppress the progress displays */
  505. /* '#'s from the tftp command. */
  506. #define CFG_TFTP_STATUS_QUIET 1 /* Suppress the status displays */
  507. /* issued during the tftp command. */
  508. #define CFG_TFTP_TIMEOUT_COUNT 5 /* How many timeouts TFTP will allow */
  509. /* before it gives up. */
  510. #if defined(CONFIG_CMD_KGDB)
  511. # define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
  512. #else
  513. # define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  514. #endif
  515. /* Print Buffer Size */
  516. #define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
  517. #define CFG_MAXARGS 32 /* max number of command args */
  518. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  519. #define CFG_LOAD_ADDR 0x400000 /* default load address */
  520. #define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
  521. #define CFG_ALT_MEMTEST /* Select full-featured memory test */
  522. #define CFG_MEMTEST_START 0x2000 /* memtest works from the end of */
  523. /* the exception vector table */
  524. /* to the end of the DRAM */
  525. /* less monitor and malloc area */
  526. #define CFG_STACK_USAGE 0x10000 /* Reserve 64k for the stack usage */
  527. #define CFG_MEM_END_USAGE ( CFG_MONITOR_LEN \
  528. + CFG_MALLOC_LEN \
  529. + CFG_ENV_SECT_SIZE \
  530. + CFG_STACK_USAGE )
  531. #define CFG_MEMTEST_END ( CFG_SDRAM_SIZE * 1024 * 1024 \
  532. - CFG_MEM_END_USAGE )
  533. /* valid baudrates */
  534. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  535. /*
  536. * Low Level Configuration Settings
  537. * (address mappings, register initial values, etc.)
  538. * You should know what you are doing if you make changes here.
  539. */
  540. #define CFG_FLASH_BASE CFG_FLASH0_BASE
  541. #define CFG_FLASH_SIZE CFG_FLASH0_SIZE
  542. #define CFG_SDRAM_BASE CFG_SDRAM0_BASE
  543. #define CFG_SDRAM_SIZE CFG_SDRAM0_SIZE
  544. /*-----------------------------------------------------------------------
  545. * Hard Reset Configuration Words
  546. */
  547. #if defined(CFG_SBC_BOOT_LOW)
  548. # define CFG_SBC_HRCW_BOOT_FLAGS (HRCW_CIP | HRCW_BMS)
  549. #else
  550. # define CFG_SBC_HRCW_BOOT_FLAGS (0)
  551. #endif /* defined(CFG_SBC_BOOT_LOW) */
  552. /* get the HRCW ISB field from CFG_IMMR */
  553. #define CFG_SBC_HRCW_IMMR ( ((CFG_IMMR & 0x10000000) >> 10) | \
  554. ((CFG_IMMR & 0x01000000) >> 7) | \
  555. ((CFG_IMMR & 0x00100000) >> 4) )
  556. #define CFG_HRCW_MASTER ( HRCW_BPS10 | \
  557. HRCW_DPPC11 | \
  558. CFG_SBC_HRCW_IMMR | \
  559. HRCW_MMR00 | \
  560. HRCW_LBPC11 | \
  561. HRCW_APPC10 | \
  562. HRCW_CS10PC00 | \
  563. (CFG_SBC_MODCK_H & HRCW_MODCK_H1111) | \
  564. CFG_SBC_HRCW_BOOT_FLAGS )
  565. /* no slaves */
  566. #define CFG_HRCW_SLAVE1 0
  567. #define CFG_HRCW_SLAVE2 0
  568. #define CFG_HRCW_SLAVE3 0
  569. #define CFG_HRCW_SLAVE4 0
  570. #define CFG_HRCW_SLAVE5 0
  571. #define CFG_HRCW_SLAVE6 0
  572. #define CFG_HRCW_SLAVE7 0
  573. /*-----------------------------------------------------------------------
  574. * Definitions for initial stack pointer and data area (in DPRAM)
  575. */
  576. #define CFG_INIT_RAM_ADDR CFG_IMMR
  577. #define CFG_INIT_RAM_END 0x4000 /* End of used area in DPRAM */
  578. #define CFG_GBL_DATA_SIZE 128 /* bytes reserved for initial data */
  579. #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
  580. #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET
  581. /*-----------------------------------------------------------------------
  582. * Start addresses for the final memory configuration
  583. * (Set up by the startup code)
  584. * Please note that CFG_SDRAM_BASE _must_ start at 0
  585. * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
  586. */
  587. #define CFG_MONITOR_BASE CFG_FLASH0_BASE
  588. #if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
  589. # define CFG_RAMBOOT
  590. #endif
  591. #define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
  592. #define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
  593. /*
  594. * For booting Linux, the board info and command line data
  595. * have to be in the first 8 MB of memory, since this is
  596. * the maximum mapped by the Linux kernel during initialization.
  597. */
  598. #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
  599. /*-----------------------------------------------------------------------
  600. * FLASH and environment organization
  601. */
  602. #define CFG_FLASH_CFI 1 /* Flash is CFI conformant */
  603. #undef CFG_FLASH_PROTECTION /* use hardware protection */
  604. #define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */
  605. #define CFG_MAX_FLASH_SECT (64+4) /* max number of sectors on one chip */
  606. #define CFG_FLASH_ERASE_TOUT 8000 /* Timeout for Flash Erase (in ms) */
  607. #define CFG_FLASH_WRITE_TOUT 1 /* Timeout for Flash Write (in ms) */
  608. #ifndef CFG_RAMBOOT
  609. # define CFG_ENV_IS_IN_FLASH 1
  610. # ifdef CFG_ENV_IN_OWN_SECT
  611. # define CFG_ENV_ADDR (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
  612. # define CFG_ENV_SECT_SIZE 0x10000
  613. # else
  614. # define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_MONITOR_LEN - CFG_ENV_SECT_SIZE)
  615. # define CFG_ENV_SIZE 0x1000 /* Total Size of Environment Sector */
  616. # define CFG_ENV_SECT_SIZE 0x10000 /* see README - env sect real size */
  617. # endif /* CFG_ENV_IN_OWN_SECT */
  618. #else
  619. # define CFG_ENV_IS_IN_NVRAM 1
  620. # define CFG_ENV_ADDR (CFG_MONITOR_BASE - 0x1000)
  621. # define CFG_ENV_SIZE 0x200
  622. #endif /* CFG_RAMBOOT */
  623. /*-----------------------------------------------------------------------
  624. * Cache Configuration
  625. */
  626. #define CFG_CACHELINE_SIZE 32 /* For MPC8260 CPU */
  627. #if defined(CONFIG_CMD_KGDB)
  628. # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
  629. #endif
  630. /*-----------------------------------------------------------------------
  631. * HIDx - Hardware Implementation-dependent Registers 2-11
  632. *-----------------------------------------------------------------------
  633. * HID0 also contains cache control - initially enable both caches and
  634. * invalidate contents, then the final state leaves only the instruction
  635. * cache enabled. Note that Power-On and Hard reset invalidate the caches,
  636. * but Soft reset does not.
  637. *
  638. * HID1 has only read-only information - nothing to set.
  639. */
  640. #define CFG_HID0_INIT (HID0_ICE |\
  641. HID0_DCE |\
  642. HID0_ICFI |\
  643. HID0_DCI |\
  644. HID0_IFEM |\
  645. HID0_ABE)
  646. #define CFG_HID0_FINAL (HID0_ICE |\
  647. HID0_IFEM |\
  648. HID0_ABE |\
  649. HID0_EMCP)
  650. #define CFG_HID2 0
  651. /*-----------------------------------------------------------------------
  652. * RMR - Reset Mode Register
  653. *-----------------------------------------------------------------------
  654. */
  655. #define CFG_RMR 0
  656. /*-----------------------------------------------------------------------
  657. * BCR - Bus Configuration 4-25
  658. *-----------------------------------------------------------------------
  659. */
  660. #define CFG_BCR (BCR_ETM)
  661. /*-----------------------------------------------------------------------
  662. * SIUMCR - SIU Module Configuration 4-31
  663. *-----------------------------------------------------------------------
  664. */
  665. #define CFG_SIUMCR (SIUMCR_DPPC11 |\
  666. SIUMCR_L2CPC00 |\
  667. SIUMCR_APPC10 |\
  668. SIUMCR_MMR00)
  669. /*-----------------------------------------------------------------------
  670. * SYPCR - System Protection Control 11-9
  671. * SYPCR can only be written once after reset!
  672. *-----------------------------------------------------------------------
  673. * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  674. */
  675. #if defined(CONFIG_WATCHDOG)
  676. #define CFG_SYPCR (SYPCR_SWTC |\
  677. SYPCR_BMT |\
  678. SYPCR_PBME |\
  679. SYPCR_LBME |\
  680. SYPCR_SWRI |\
  681. SYPCR_SWP |\
  682. SYPCR_SWE)
  683. #else
  684. #define CFG_SYPCR (SYPCR_SWTC |\
  685. SYPCR_BMT |\
  686. SYPCR_PBME |\
  687. SYPCR_LBME |\
  688. SYPCR_SWRI |\
  689. SYPCR_SWP)
  690. #endif /* CONFIG_WATCHDOG */
  691. /*-----------------------------------------------------------------------
  692. * TMCNTSC - Time Counter Status and Control 4-40
  693. *-----------------------------------------------------------------------
  694. * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  695. * and enable Time Counter
  696. */
  697. #define CFG_TMCNTSC (TMCNTSC_SEC |\
  698. TMCNTSC_ALR |\
  699. TMCNTSC_TCF |\
  700. TMCNTSC_TCE)
  701. /*-----------------------------------------------------------------------
  702. * PISCR - Periodic Interrupt Status and Control 4-42
  703. *-----------------------------------------------------------------------
  704. * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  705. * Periodic timer
  706. */
  707. #define CFG_PISCR (PISCR_PS |\
  708. PISCR_PTF |\
  709. PISCR_PTE)
  710. /*-----------------------------------------------------------------------
  711. * SCCR - System Clock Control 9-8
  712. *-----------------------------------------------------------------------
  713. */
  714. #define CFG_SCCR 0
  715. /*-----------------------------------------------------------------------
  716. * RCCR - RISC Controller Configuration 13-7
  717. *-----------------------------------------------------------------------
  718. */
  719. #define CFG_RCCR 0
  720. /*
  721. * Initialize Memory Controller:
  722. *
  723. * Bank Bus Machine PortSz Device
  724. * ---- --- ------- ------ ------
  725. * 0 60x GPCM 16 bit FLASH (primary flash - 2MB)
  726. * 1 60x GPCM -- bit (Unused)
  727. * 2 60x SDRAM 64 bit SDRAM (DIMM)
  728. * 3 60x SDRAM 64 bit SDRAM (DIMM)
  729. * 4 60x GPCM -- bit (Unused)
  730. * 5 60x GPCM -- bit (Unused)
  731. * 6 60x GPCM 16 bit FLASH (secondary flash - 2MB)
  732. */
  733. /*-----------------------------------------------------------------------
  734. * BR0,BR1 - Base Register
  735. * Ref: Section 10.3.1 on page 10-14
  736. * OR0,OR1 - Option Register
  737. * Ref: Section 10.3.2 on page 10-18
  738. *-----------------------------------------------------------------------
  739. */
  740. /* Bank 0 - Primary FLASH
  741. */
  742. /* BR0 is configured as follows:
  743. *
  744. * - Base address of 0x40000000
  745. * - 16 bit port size
  746. * - Data errors checking is disabled
  747. * - Read and write access
  748. * - GPCM 60x bus
  749. * - Access are handled by the memory controller according to MSEL
  750. * - Not used for atomic operations
  751. * - No data pipelining is done
  752. * - Valid
  753. */
  754. #define CFG_BR0_PRELIM ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
  755. BRx_PS_16 |\
  756. BRx_MS_GPCM_P |\
  757. BRx_V)
  758. /* OR0 is configured as follows:
  759. *
  760. * - 4 MB
  761. * - *BCTL0 is asserted upon access to the current memory bank
  762. * - *CW / *WE are negated a quarter of a clock earlier
  763. * - *CS is output at the same time as the address lines
  764. * - Uses a clock cycle length of 5
  765. * - *PSDVAL is generated internally by the memory controller
  766. * unless *GTA is asserted earlier externally.
  767. * - Relaxed timing is generated by the GPCM for accesses
  768. * initiated to this memory region.
  769. * - One idle clock is inserted between a read access from the
  770. * current bank and the next access.
  771. */
  772. #define CFG_OR0_PRELIM (MEG_TO_AM(CFG_FLASH0_SIZE) |\
  773. ORxG_CSNT |\
  774. ORxG_ACS_DIV1 |\
  775. ORxG_SCY_5_CLK |\
  776. ORxG_TRLX |\
  777. ORxG_EHTR)
  778. /*-----------------------------------------------------------------------
  779. * BR2,BR3 - Base Register
  780. * Ref: Section 10.3.1 on page 10-14
  781. * OR2,OR3 - Option Register
  782. * Ref: Section 10.3.2 on page 10-16
  783. *-----------------------------------------------------------------------
  784. */
  785. /* Bank 2,3 - SDRAM DIMM
  786. */
  787. /* The BR2 is configured as follows:
  788. *
  789. * - Base address of 0x00000000
  790. * - 64 bit port size (60x bus only)
  791. * - Data errors checking is disabled
  792. * - Read and write access
  793. * - SDRAM 60x bus
  794. * - Access are handled by the memory controller according to MSEL
  795. * - Not used for atomic operations
  796. * - No data pipelining is done
  797. * - Valid
  798. */
  799. #define CFG_BR2_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
  800. BRx_PS_64 |\
  801. BRx_MS_SDRAM_P |\
  802. BRx_V)
  803. #define CFG_BR3_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
  804. BRx_PS_64 |\
  805. BRx_MS_SDRAM_P |\
  806. BRx_V)
  807. /* With a 64 MB DIMM, the OR2 is configured as follows:
  808. *
  809. * - 64 MB
  810. * - 4 internal banks per device
  811. * - Row start address bit is A8 with PSDMR[PBI] = 0
  812. * - 12 row address lines
  813. * - Back-to-back page mode
  814. * - Internal bank interleaving within save device enabled
  815. */
  816. #if (CFG_SDRAM0_SIZE == 64)
  817. #define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM0_SIZE) |\
  818. ORxS_BPD_4 |\
  819. ORxS_ROWST_PBI0_A8 |\
  820. ORxS_NUMR_12)
  821. #else
  822. #error "INVALID SDRAM CONFIGURATION"
  823. #endif
  824. /*-----------------------------------------------------------------------
  825. * PSDMR - 60x Bus SDRAM Mode Register
  826. * Ref: Section 10.3.3 on page 10-21
  827. *-----------------------------------------------------------------------
  828. */
  829. /* Address that the DIMM SPD memory lives at.
  830. */
  831. #define SDRAM_SPD_ADDR 0x50
  832. #if (CFG_SDRAM0_SIZE == 64)
  833. /* With a 64 MB DIMM, the PSDMR is configured as follows:
  834. *
  835. * - Bank Based Interleaving,
  836. * - Refresh Enable,
  837. * - Address Multiplexing where A5 is output on A14 pin
  838. * (A6 on A15, and so on),
  839. * - use address pins A14-A16 as bank select,
  840. * - A9 is output on SDA10 during an ACTIVATE command,
  841. * - earliest timing for ACTIVATE command after REFRESH command is 7 clocks,
  842. * - earliest timing for ACTIVATE or REFRESH command after PRECHARGE command
  843. * is 3 clocks,
  844. * - earliest timing for READ/WRITE command after ACTIVATE command is
  845. * 2 clocks,
  846. * - earliest timing for PRECHARGE after last data was read is 1 clock,
  847. * - earliest timing for PRECHARGE after last data was written is 1 clock,
  848. * - CAS Latency is 2.
  849. */
  850. #define CFG_PSDMR (PSDMR_RFEN |\
  851. PSDMR_SDAM_A14_IS_A5 |\
  852. PSDMR_BSMA_A14_A16 |\
  853. PSDMR_SDA10_PBI0_A9 |\
  854. PSDMR_RFRC_7_CLK |\
  855. PSDMR_PRETOACT_3W |\
  856. PSDMR_ACTTORW_2W |\
  857. PSDMR_LDOTOPRE_1C |\
  858. PSDMR_WRC_1C |\
  859. PSDMR_CL_2)
  860. #else
  861. #error "INVALID SDRAM CONFIGURATION"
  862. #endif
  863. /*
  864. * Shoot for approximately 1MHz on the prescaler.
  865. */
  866. #if (CONFIG_8260_CLKIN >= (60 * 1000 * 1000))
  867. #define CFG_MPTPR MPTPR_PTP_DIV64
  868. #elif (CONFIG_8260_CLKIN >= (30 * 1000 * 1000))
  869. #define CFG_MPTPR MPTPR_PTP_DIV32
  870. #else
  871. #warning "Unconfigured bus clock freq: check CFG_MPTPR and CFG_PSRT are OK"
  872. #define CFG_MPTPR MPTPR_PTP_DIV32
  873. #endif
  874. #define CFG_PSRT 14
  875. /*-----------------------------------------------------------------------
  876. * BR6 - Base Register
  877. * Ref: Section 10.3.1 on page 10-14
  878. * OR6 - Option Register
  879. * Ref: Section 10.3.2 on page 10-18
  880. *-----------------------------------------------------------------------
  881. */
  882. /* Bank 6 - Secondary FLASH
  883. *
  884. * The secondary FLASH is connected to *CS6
  885. */
  886. #if (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE))
  887. /* BR6 is configured as follows:
  888. *
  889. * - Base address of 0x60000000
  890. * - 16 bit port size
  891. * - Data errors checking is disabled
  892. * - Read and write access
  893. * - GPCM 60x bus
  894. * - Access are handled by the memory controller according to MSEL
  895. * - Not used for atomic operations
  896. * - No data pipelining is done
  897. * - Valid
  898. */
  899. # define CFG_BR6_PRELIM ((CFG_FLASH1_BASE & BRx_BA_MSK) |\
  900. BRx_PS_16 |\
  901. BRx_MS_GPCM_P |\
  902. BRx_V)
  903. /* OR6 is configured as follows:
  904. *
  905. * - 2 MB
  906. * - *BCTL0 is asserted upon access to the current memory bank
  907. * - *CW / *WE are negated a quarter of a clock earlier
  908. * - *CS is output at the same time as the address lines
  909. * - Uses a clock cycle length of 5
  910. * - *PSDVAL is generated internally by the memory controller
  911. * unless *GTA is asserted earlier externally.
  912. * - Relaxed timing is generated by the GPCM for accesses
  913. * initiated to this memory region.
  914. * - One idle clock is inserted between a read access from the
  915. * current bank and the next access.
  916. */
  917. # define CFG_OR6_PRELIM (MEG_TO_AM(CFG_FLASH1_SIZE) |\
  918. ORxG_CSNT |\
  919. ORxG_ACS_DIV1 |\
  920. ORxG_SCY_5_CLK |\
  921. ORxG_TRLX |\
  922. ORxG_EHTR)
  923. #endif /* (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE)) */
  924. /*
  925. * Internal Definitions
  926. *
  927. * Boot Flags
  928. */
  929. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  930. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  931. #endif /* __CONFIG_H */