sbc8260.h 34 KB

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