DK1C20.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. /*
  2. * (C) Copyright 2003, Psyent Corporation <www.psyent.com>
  3. * Scott McNutt <smcnutt@psyent.com>
  4. * Stephan Linz <linz@li-pro.net>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. #ifndef __CONFIG_H
  25. #define __CONFIG_H
  26. /***********************************************************************
  27. * Include the whole NIOS CPU configuration.
  28. *
  29. * !!! HAVE TO BE HERE !!! DON'T MOVE THIS PART !!!
  30. *
  31. ***********************************************************************/
  32. #if defined(CONFIG_NIOS_SAFE_32)
  33. #include <configs/DK1C20_safe_32.h>
  34. #elif defined(CONFIG_NIOS_STANDARD_32)
  35. #include <configs/DK1C20_standard_32.h>
  36. #else
  37. #error *** CFG_ERROR: you have to setup right NIOS CPU configuration
  38. #endif
  39. /*------------------------------------------------------------------------
  40. * BOARD/CPU -- TOP-LEVEL
  41. *----------------------------------------------------------------------*/
  42. #define CONFIG_NIOS 1 /* NIOS-32 core */
  43. #define CONFIG_DK1C20 1 /* Cyclone DK-1C20 board*/
  44. #define CONFIG_SYS_CLK_FREQ CFG_NIOS_CPU_CLK/* 50 MHz core clock */
  45. #define CFG_HZ 1000 /* 1 msec time tick */
  46. #undef CFG_CLKS_IN_HZ
  47. #define CONFIG_BOARD_EARLY_INIT_F 1 /* enable early board-spec. init*/
  48. /*------------------------------------------------------------------------
  49. * BASE ADDRESSES / SIZE (Flash, SRAM, SDRAM)
  50. *----------------------------------------------------------------------*/
  51. #if (CFG_NIOS_CPU_SDRAM_SIZE != 0)
  52. #define CFG_SDRAM_BASE CFG_NIOS_CPU_SDRAM_BASE
  53. #define CFG_SDRAM_SIZE CFG_NIOS_CPU_SDRAM_SIZE
  54. #else
  55. #error *** CFG_ERROR: you have to setup any SDRAM in NIOS CPU config
  56. #endif
  57. #define CFG_SRAM_BASE CFG_NIOS_CPU_SRAM_BASE
  58. #define CFG_SRAM_SIZE CFG_NIOS_CPU_SRAM_SIZE
  59. #define CFG_VECT_BASE CFG_NIOS_CPU_VEC_BASE
  60. /*------------------------------------------------------------------------
  61. * MEMORY ORGANIZATION - For the most part, you can put things pretty
  62. * much anywhere. This is pretty flexible for Nios. So here we make some
  63. * arbitrary choices & assume that the monitor is placed at the end of
  64. * a memory resource (so you must make sure TEXT_BASE is chosen
  65. * appropriately).
  66. *
  67. * -The heap is placed below the monitor.
  68. * -Global data is placed below the heap.
  69. * -The stack is placed below global data (&grows down).
  70. *----------------------------------------------------------------------*/
  71. #define CFG_MONITOR_LEN (256 * 1024) /* Reserve 256k */
  72. #define CFG_GBL_DATA_SIZE 128 /* Global data size rsvd*/
  73. #define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
  74. #define CFG_MONITOR_BASE TEXT_BASE
  75. #define CFG_MALLOC_BASE (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
  76. #define CFG_GBL_DATA_OFFSET (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
  77. #define CFG_INIT_SP CFG_GBL_DATA_OFFSET
  78. /*------------------------------------------------------------------------
  79. * FLASH (AM29LV065D)
  80. *----------------------------------------------------------------------*/
  81. #if (CFG_NIOS_CPU_FLASH_SIZE != 0)
  82. #define CFG_FLASH_BASE CFG_NIOS_CPU_FLASH_BASE
  83. #define CFG_FLASH_SIZE CFG_NIOS_CPU_FLASH_SIZE
  84. #define CFG_MAX_FLASH_SECT 128 /* Max # sects per bank */
  85. #define CFG_MAX_FLASH_BANKS 1 /* Max # of flash banks */
  86. #define CFG_FLASH_ERASE_TOUT 8000 /* Erase timeout (msec) */
  87. #define CFG_FLASH_WRITE_TOUT 100 /* Write timeout (msec) */
  88. #define CFG_FLASH_WORD_SIZE unsigned char /* flash word size */
  89. #else
  90. #error *** CFG_ERROR: you have to setup any Flash memory in NIOS CPU config
  91. #endif
  92. /*------------------------------------------------------------------------
  93. * ENVIRONMENT
  94. *----------------------------------------------------------------------*/
  95. #if (CFG_NIOS_CPU_FLASH_SIZE != 0)
  96. #define CFG_ENV_IS_IN_FLASH 1 /* Environment in flash */
  97. #define CFG_ENV_ADDR CFG_FLASH_BASE /* Mem addr of env */
  98. #define CFG_ENV_SIZE (64 * 1024) /* 64 KByte (1 sector) */
  99. #define CONFIG_ENV_OVERWRITE /* Serial/eth change Ok */
  100. #else
  101. #define CFG_ENV_IS_NOWHERE 1 /* NO Environment */
  102. #endif
  103. /*------------------------------------------------------------------------
  104. * CONSOLE
  105. *----------------------------------------------------------------------*/
  106. #if (CFG_NIOS_CPU_UART_NUMS != 0)
  107. #define CFG_NIOS_CONSOLE CFG_NIOS_CPU_UART0 /* 1st UART is Cons. */
  108. #if (CFG_NIOS_CPU_UART0_BR != 0)
  109. #define CFG_NIOS_FIXEDBAUD 1 /* Baudrate is fixed */
  110. #define CONFIG_BAUDRATE CFG_NIOS_CPU_UART0_BR
  111. #else
  112. #undef CFG_NIOS_FIXEDBAUD
  113. #define CONFIG_BAUDRATE 115200
  114. #endif
  115. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  116. #else
  117. #error *** CFG_ERROR: you have to setup at least one UART in NIOS CPU config
  118. #endif
  119. /*------------------------------------------------------------------------
  120. * TIMER FOR TIMEBASE -- Nios doesn't have the equivalent of ppc PIT,
  121. * so an avalon bus timer is required.
  122. *----------------------------------------------------------------------*/
  123. #if (CFG_NIOS_CPU_TIMER_NUMS != 0)
  124. #if (CFG_NIOS_CPU_TICK_TIMER == 0)
  125. #define CFG_NIOS_TMRBASE CFG_NIOS_CPU_TIMER0 /* TIMER0 as tick */
  126. #define CFG_NIOS_TMRIRQ CFG_NIOS_CPU_TIMER0_IRQ
  127. #if (CFG_NIOS_CPU_TIMER0_FP == 1) /* fixed period */
  128. #if (CFG_NIOS_CPU_TIMER0_PER >= CFG_HZ)
  129. #define CFG_NIOS_TMRMS (CFG_NIOS_CPU_TIMER0_PER / CFG_HZ)
  130. #else
  131. #error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
  132. #endif
  133. #undef CFG_NIOS_TMRCNT /* no preloadable counter value */
  134. #elif (CFG_NIOS_CPU_TIMER0_FP == 0) /* variable period */
  135. #if (CFG_HZ <= 1000)
  136. #define CFG_NIOS_TMRMS (1000 / CFG_HZ)
  137. #else
  138. #error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
  139. #endif
  140. #define CFG_NIOS_TMRCNT (CONFIG_SYS_CLK_FREQ / CFG_HZ)
  141. #else
  142. #error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER0_FP correct
  143. #endif
  144. #elif (CFG_NIOS_CPU_TICK_TIMER == 1)
  145. #define CFG_NIOS_TMRBASE CFG_NIOS_CPU_TIMER1 /* TIMER1 as tick */
  146. #define CFG_NIOS_TMRIRQ CFG_NIOS_CPU_TIMER1_IRQ
  147. #if (CFG_NIOS_CPU_TIMER1_FP == 1) /* fixed period */
  148. #if (CFG_NIOS_CPU_TIMER1_PER >= CFG_HZ)
  149. #define CFG_NIOS_TMRMS (CFG_NIOS_CPU_TIMER1_PER / CFG_HZ)
  150. #else
  151. #error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
  152. #endif
  153. #undef CFG_NIOS_TMRCNT /* no preloadable counter value */
  154. #elif (CFG_NIOS_CPU_TIMER1_FP == 0) /* variable period */
  155. #if (CFG_HZ <= 1000)
  156. #define CFG_NIOS_TMRMS (1000 / CFG_HZ)
  157. #else
  158. #error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
  159. #endif
  160. #define CFG_NIOS_TMRCNT (CONFIG_SYS_CLK_FREQ / CFG_HZ)
  161. #else
  162. #error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER1_FP correct
  163. #endif
  164. #endif /* CFG_NIOS_CPU_TICK_TIMER */
  165. #else
  166. #error *** CFG_ERROR: you have to setup at least one TIMER in NIOS CPU config
  167. #endif
  168. /*------------------------------------------------------------------------
  169. * Ethernet
  170. *----------------------------------------------------------------------*/
  171. #if (CFG_NIOS_CPU_LAN_NUMS == 1)
  172. #if (CFG_NIOS_CPU_LAN0_TYPE == 0) /* LAN91C111 */
  173. #define CONFIG_DRIVER_SMC91111 /* Using SMC91c111 */
  174. #undef CONFIG_SMC91111_EXT_PHY /* Internal PHY */
  175. #define CONFIG_SMC91111_BASE (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
  176. #if (CFG_NIOS_CPU_LAN0_BUSW == 32)
  177. #define CONFIG_SMC_USE_32_BIT 1
  178. #else /* no */
  179. #undef CONFIG_SMC_USE_32_BIT
  180. #endif
  181. #elif (CFG_NIOS_CPU_LAN0_TYPE == 1) /* CS8900A */
  182. /********************************************/
  183. /* !!! CS8900 is __not__ tested on NIOS !!! */
  184. /********************************************/
  185. #define CONFIG_DRIVER_CS8900 /* Using CS8900 */
  186. #define CS8900_BASE (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
  187. #if (CFG_NIOS_CPU_LAN0_BUSW == 32)
  188. #undef CS8900_BUS16
  189. #define CS8900_BUS32 1
  190. #else /* no */
  191. #define CS8900_BUS16 1
  192. #undef CS8900_BUS32
  193. #endif
  194. #else
  195. #error *** CFG_ERROR: invalid LAN0 chip type, check your NIOS CPU config
  196. #endif
  197. #define CONFIG_ETHADDR 08:00:3e:26:0a:5b
  198. #define CONFIG_NETMASK 255.255.255.0
  199. #define CONFIG_IPADDR 192.168.2.21
  200. #define CONFIG_SERVERIP 192.168.2.16
  201. #else
  202. #error *** CFG_ERROR: you have to setup just one LAN only or expand your config.h
  203. #endif
  204. /*------------------------------------------------------------------------
  205. * STATUS LEDs
  206. *----------------------------------------------------------------------*/
  207. #if (CFG_NIOS_CPU_PIO_NUMS != 0)
  208. #if (CFG_NIOS_CPU_LED_PIO == 0)
  209. #error *** CFG_ERROR: status LEDs at PIO0 not supported, expand your config.h
  210. #elif (CFG_NIOS_CPU_LED_PIO == 1)
  211. #error *** CFG_ERROR: status LEDs at PIO1 not supported, expand your config.h
  212. #elif (CFG_NIOS_CPU_LED_PIO == 2)
  213. #define STATUS_LED_BASE CFG_NIOS_CPU_PIO2
  214. #define STATUS_LED_BITS CFG_NIOS_CPU_PIO2_BITS
  215. #define STATUS_LED_ACTIVE 1 /* LED on for bit == 1 */
  216. #if (CFG_NIOS_CPU_PIO2_TYPE == 1)
  217. #define STATUS_LED_WRONLY 1
  218. #else
  219. #undef STATUS_LED_WRONLY
  220. #endif
  221. #elif (CFG_NIOS_CPU_LED_PIO == 3)
  222. #error *** CFG_ERROR: status LEDs at PIO3 not supported, expand your config.h
  223. #elif (CFG_NIOS_CPU_LED_PIO == 4)
  224. #error *** CFG_ERROR: status LEDs at PIO4 not supported, expand your config.h
  225. #elif (CFG_NIOS_CPU_LED_PIO == 5)
  226. #error *** CFG_ERROR: status LEDs at PIO5 not supported, expand your config.h
  227. #elif (CFG_NIOS_CPU_LED_PIO == 6)
  228. #error *** CFG_ERROR: status LEDs at PIO6 not supported, expand your config.h
  229. #elif (CFG_NIOS_CPU_LED_PIO == 7)
  230. #error *** CFG_ERROR: status LEDs at PIO7 not supported, expand your config.h
  231. #elif (CFG_NIOS_CPU_LED_PIO == 8)
  232. #error *** CFG_ERROR: status LEDs at PIO8 not supported, expand your config.h
  233. #elif (CFG_NIOS_CPU_LED_PIO == 9)
  234. #error *** CFG_ERROR: status LEDs at PIO9 not supported, expand your config.h
  235. #else
  236. #error *** CFG_ERROR: you have to set CFG_NIOS_CPU_LED_PIO in right case
  237. #endif
  238. #define CONFIG_STATUS_LED 1 /* enable status led driver */
  239. #define STATUS_LED_BIT (1 << 0) /* LED[0] */
  240. #define STATUS_LED_STATE STATUS_LED_BLINKING
  241. #define STATUS_LED_BOOT_STATE STATUS_LED_OFF
  242. #define STATUS_LED_PERIOD (CFG_HZ / 10) /* ca. 1 Hz */
  243. #define STATUS_LED_BOOT 0 /* boot LED */
  244. #if (STATUS_LED_BITS > 1)
  245. #define STATUS_LED_BIT1 (1 << 1) /* LED[1] */
  246. #define STATUS_LED_STATE1 STATUS_LED_OFF
  247. #define STATUS_LED_PERIOD1 (CFG_HZ / 50) /* ca. 5 Hz */
  248. #define STATUS_LED_RED 1 /* fail LED */
  249. #endif
  250. #if (STATUS_LED_BITS > 2)
  251. #define STATUS_LED_BIT2 (1 << 2) /* LED[2] */
  252. #define STATUS_LED_STATE2 STATUS_LED_OFF
  253. #define STATUS_LED_PERIOD2 (CFG_HZ / 10) /* ca. 1 Hz */
  254. #define STATUS_LED_YELLOW 2 /* info LED */
  255. #endif
  256. #if (STATUS_LED_BITS > 3)
  257. #define STATUS_LED_BIT3 (1 << 3) /* LED[3] */
  258. #define STATUS_LED_STATE3 STATUS_LED_OFF
  259. #define STATUS_LED_PERIOD3 (CFG_HZ / 10) /* ca. 1 Hz */
  260. #define STATUS_LED_GREEN 3 /* info LED */
  261. #endif
  262. #define STATUS_LED_PAR 1 /* makes status_led.h happy */
  263. #endif /* CFG_NIOS_CPU_PIO_NUMS */
  264. /*------------------------------------------------------------------------
  265. * SEVEN SEGMENT LED DISPLAY
  266. *----------------------------------------------------------------------*/
  267. #if (CFG_NIOS_CPU_PIO_NUMS != 0)
  268. #if (CFG_NIOS_CPU_SEVENSEG_PIO == 0)
  269. #error *** CFG_ERROR: seven segment display at PIO0 not supported, expand your config.h
  270. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 1)
  271. #error *** CFG_ERROR: seven segment display at PIO1 not supported, expand your config.h
  272. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 2)
  273. #error *** CFG_ERROR: seven segment display at PIO2 not supported, expand your config.h
  274. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 3)
  275. #define SEVENSEG_BASE CFG_NIOS_CPU_PIO3
  276. #define SEVENSEG_BITS CFG_NIOS_CPU_PIO3_BITS
  277. #define SEVENSEG_ACTIVE 0 /* LED on for bit == 1 */
  278. #if (CFG_NIOS_CPU_PIO3_TYPE == 1)
  279. #define SEVENSEG_WRONLY 1
  280. #else
  281. #undef SEVENSEG_WRONLY
  282. #endif
  283. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 4)
  284. #error *** CFG_ERROR: seven segment display at PIO4 not supported, expand your config.h
  285. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 5)
  286. #error *** CFG_ERROR: seven segment display at PIO5 not supported, expand your config.h
  287. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 6)
  288. #error *** CFG_ERROR: seven segment display at PIO6 not supported, expand your config.h
  289. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 7)
  290. #error *** CFG_ERROR: seven segment display at PIO7 not supported, expand your config.h
  291. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 8)
  292. #error *** CFG_ERROR: seven segment display at PIO8 not supported, expand your config.h
  293. #elif (CFG_NIOS_CPU_SEVENSEG_PIO == 9)
  294. #error *** CFG_ERROR: seven segment display at PIO9 not supported, expand your config.h
  295. #else
  296. #error *** CFG_ERROR: you have to set CFG_NIOS_CPU_SEVENSEG_PIO in right case
  297. #endif
  298. #define CONFIG_SEVENSEG 1 /* enable seven segment led driver */
  299. /*
  300. * Dual 7-Segment Display pin assignment -- read more in your
  301. * "Nios Development Board Reference Manual"
  302. *
  303. *
  304. * (U8) HI:D[15..8] (U9) LO:D[7..0]
  305. * ______ ______
  306. * | D14 | | D6 |
  307. * | | | |
  308. * D9| |D13 D1| |D5
  309. * |______| |______| ___
  310. * | D8 | | D0 | | A |
  311. * | | | | F|___|B
  312. * D10| |D12 D2| |D4 | G |
  313. * |______| |______| E|___|C
  314. * D11 * D3 * D *
  315. * D15 D7 DP
  316. *
  317. */
  318. #define SEVENSEG_DIGIT_HI_LO_EQUAL 1 /* high nibble equal low nibble */
  319. #define SEVENSEG_DIGIT_A (1 << 6) /* bit 6 is segment A */
  320. #define SEVENSEG_DIGIT_B (1 << 5) /* bit 5 is segment B */
  321. #define SEVENSEG_DIGIT_C (1 << 4) /* bit 4 is segment C */
  322. #define SEVENSEG_DIGIT_D (1 << 3) /* bit 3 is segment D */
  323. #define SEVENSEG_DIGIT_E (1 << 2) /* bit 2 is segment E */
  324. #define SEVENSEG_DIGIT_F (1 << 1) /* bit 1 is segment F */
  325. #define SEVENSEG_DIGIT_G (1 << 0) /* bit 0 is segment G */
  326. #define SEVENSEG_DIGIT_DP (1 << 7) /* bit 7 is decimal point */
  327. #endif /* CFG_NIOS_CPU_PIO_NUMS */
  328. /*------------------------------------------------------------------------
  329. * ASMI - Active Serial Memory Interface.
  330. *
  331. * ASMI is for Cyclone devices only and only works when the configuration
  332. * is loaded via JTAG or ASMI. Please see doc/README.dk1c20 for details.
  333. *----------------------------------------------------------------------*/
  334. #define CONFIG_NIOS_ASMI /* Enable ASMI */
  335. #define CFG_NIOS_ASMIBASE CFG_NIOS_CPU_ASMI0 /* ASMI base address */
  336. /*------------------------------------------------------------------------
  337. * COMMANDS
  338. *----------------------------------------------------------------------*/
  339. #define CONFIG_COMMANDS (CFG_CMD_ALL & ~( \
  340. CFG_CMD_ASKENV | \
  341. CFG_CMD_BEDBUG | \
  342. CFG_CMD_BMP | \
  343. CFG_CMD_BSP | \
  344. CFG_CMD_CACHE | \
  345. CFG_CMD_DATE | \
  346. CFG_CMD_DOC | \
  347. CFG_CMD_DTT | \
  348. CFG_CMD_EEPROM | \
  349. CFG_CMD_ELF | \
  350. CFG_CMD_FAT | \
  351. CFG_CMD_FDC | \
  352. CFG_CMD_FDOS | \
  353. CFG_CMD_HWFLOW | \
  354. CFG_CMD_IDE | \
  355. CFG_CMD_I2C | \
  356. CFG_CMD_JFFS2 | \
  357. CFG_CMD_KGDB | \
  358. CFG_CMD_NAND | \
  359. CFG_CMD_NFS | \
  360. CFG_CMD_MMC | \
  361. CFG_CMD_MII | \
  362. CFG_CMD_PCI | \
  363. CFG_CMD_PCMCIA | \
  364. CFG_CMD_REISER | \
  365. CFG_CMD_SCSI | \
  366. CFG_CMD_SPI | \
  367. CFG_CMD_VFD | \
  368. CFG_CMD_USB ) )
  369. #include <cmd_confdefs.h>
  370. /*------------------------------------------------------------------------
  371. * KGDB
  372. *----------------------------------------------------------------------*/
  373. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  374. #define CONFIG_KGDB_BAUDRATE 9600
  375. #endif
  376. /*------------------------------------------------------------------------
  377. * MISC
  378. *----------------------------------------------------------------------*/
  379. #define CFG_LONGHELP /* undef to save memory */
  380. #define CFG_PROMPT "DK1C20 > " /* Monitor Command Prompt */
  381. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  382. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  383. #define CFG_MAXARGS 16 /* max number of command args*/
  384. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  385. #if (CFG_SRAM_SIZE != 0)
  386. #define CFG_LOAD_ADDR CFG_SRAM_BASE /* Default load address */
  387. #else
  388. #undef CFG_LOAD_ADDR
  389. #endif
  390. #if (CFG_SDRAM_SIZE != 0)
  391. #define CFG_MEMTEST_START CFG_SDRAM_BASE /* SDRAM til stack area */
  392. #define CFG_MEMTEST_END (CFG_INIT_SP - (1024 * 1024)) /* 1MB stack */
  393. #else
  394. #undef CFG_MEMTEST_START
  395. #undef CFG_MEMTEST_END
  396. #endif
  397. #endif /* __CONFIG_H */