cpu9260.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. /*
  2. * (C) Copyright 2007-2008
  3. * Stelian Pop <stelian.pop@leadtechdesign.com>
  4. * Lead Tech Design <www.leadtechdesign.com>
  5. * Ilko Iliev <www.ronetix.at>
  6. *
  7. * (C) Copyright 2009
  8. * Eric Benard <eric@eukrea.com>
  9. *
  10. * Configuration settings for the Eukrea CPU9260 board.
  11. *
  12. * See file CREDITS for list of people who contributed to this
  13. * project.
  14. *
  15. * This program is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License as
  17. * published by the Free Software Foundation; either version 2 of
  18. * the License, or (at your option) any later version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License
  26. * along with this program; if not, write to the Free Software
  27. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  28. * MA 02111-1307 USA
  29. */
  30. #ifndef __CONFIG_H
  31. #define __CONFIG_H
  32. #define CONFIG_AT91_LEGACY
  33. #define CONFIG_DISPLAY_CPUINFO 1
  34. #define CONFIG_SYS_AT91_MAIN_CLOCK 18432000
  35. #define CONFIG_SYS_HZ 1000
  36. #define CONFIG_ARM926EJS 1
  37. #if defined(CONFIG_CPU9260_128M) || defined(CONFIG_CPU9260)
  38. #define CONFIG_CPU9260 1
  39. #elif defined(CONFIG_CPU9G20_128M) || defined(CONFIG_CPU9G20)
  40. #define CONFIG_CPU9G20 1
  41. #endif
  42. #if defined(CONFIG_CPU9G20)
  43. #define CONFIG_AT91SAM9G20 1
  44. #elif defined(CONFIG_CPU9260)
  45. #define CONFIG_AT91SAM9260 1
  46. #else
  47. #error "Unknown board"
  48. #endif
  49. #define CONFIG_ARCH_CPU_INIT
  50. #undef CONFIG_USE_IRQ
  51. #define CONFIG_CMDLINE_TAG 1
  52. #define CONFIG_SETUP_MEMORY_TAGS 1
  53. #define CONFIG_INITRD_TAG 1
  54. /* clocks */
  55. #if defined(CONFIG_CPU9G20)
  56. #define MASTER_PLL_DIV 0x01
  57. #define MASTER_PLL_MUL 0x2B
  58. #elif defined(CONFIG_CPU9260)
  59. #define MASTER_PLL_DIV 0x09
  60. #define MASTER_PLL_MUL 0x61
  61. #endif
  62. /* CKGR_MOR - enable main osc. */
  63. #define CONFIG_SYS_MOR_VAL \
  64. (AT91_PMC_MOSCEN | \
  65. (255 << 8)) /* Main Oscillator Start-up Time */
  66. #if defined(CONFIG_CPU9G20)
  67. #define CONFIG_SYS_PLLAR_VAL \
  68. (AT91_PMC_PLLA_WR_ERRATA | /* Bit 29 must be 1 when prog */ \
  69. ((MASTER_PLL_MUL - 1) << 16) | (MASTER_PLL_DIV))
  70. #elif defined(CONFIG_CPU9260)
  71. #define CONFIG_SYS_PLLAR_VAL \
  72. (AT91_PMC_PLLA_WR_ERRATA | /* Bit 29 must be 1 when prog */ \
  73. AT91_PMC_OUT | \
  74. ((MASTER_PLL_MUL - 1) << 16) | (MASTER_PLL_DIV))
  75. #endif
  76. #if defined(CONFIG_CPU9G20)
  77. #define CONFIG_SYS_MCKR1_VAL \
  78. (AT91_PMC_CSS_PLLA | \
  79. AT91_PMC_PRES_1 | \
  80. AT91SAM9_PMC_MDIV_6 | \
  81. AT91_PMC_PDIV_2)
  82. #define CONFIG_SYS_MCKR2_VAL \
  83. CONFIG_SYS_MCKR1_VAL
  84. #elif defined(CONFIG_CPU9260)
  85. #define CONFIG_SYS_MCKR1_VAL \
  86. (AT91_PMC_CSS_SLOW | \
  87. AT91_PMC_PRES_1 | \
  88. AT91SAM9_PMC_MDIV_2 | \
  89. AT91_PMC_PDIV_1)
  90. #define CONFIG_SYS_MCKR2_VAL \
  91. (AT91_PMC_CSS_PLLA | \
  92. AT91_PMC_PRES_1 | \
  93. AT91SAM9_PMC_MDIV_2 | \
  94. AT91_PMC_PDIV_1)
  95. #endif
  96. /* define PDC[31:16] as DATA[31:16] */
  97. #define CONFIG_SYS_PIOC_PDR_VAL1 0xFFFF0000
  98. /* no pull-up for D[31:16] */
  99. #define CONFIG_SYS_PIOC_PPUDR_VAL 0xFFFF0000
  100. /* EBI_CSA, 3.3V, no pull-ups for D[15:0], CS1 SDRAM, CS3 NAND Flash */
  101. #define CONFIG_SYS_MATRIX_EBICSA_VAL \
  102. (AT91_MATRIX_DBPUC | AT91_MATRIX_CS1A_SDRAMC |\
  103. AT91_MATRIX_CS3A_SMC_SMARTMEDIA | AT91_MATRIX_VDDIOMSEL)
  104. /* SDRAM */
  105. /* SDRAMC_MR Mode register */
  106. #define CONFIG_SYS_SDRC_MR_VAL1 AT91_SDRAMC_MODE_NORMAL
  107. /* SDRAMC_TR - Refresh Timer register */
  108. #define CONFIG_SYS_SDRC_TR_VAL1 0x287
  109. /* SDRAMC_CR - Configuration register*/
  110. #if defined(CONFIG_CPU9G20)
  111. #define CONFIG_SYS_SDRC_CR_VAL_64MB \
  112. (AT91_SDRAMC_NC_9 | \
  113. AT91_SDRAMC_NR_13 | \
  114. AT91_SDRAMC_NB_4 | \
  115. AT91_SDRAMC_CAS_2 | \
  116. AT91_SDRAMC_DBW_32 | \
  117. (2 << 8) | /* Write Recovery Delay */ \
  118. (9 << 12) | /* Row Cycle Delay */ \
  119. (3 << 16) | /* Row Precharge Delay */ \
  120. (3 << 20) | /* Row to Column Delay */ \
  121. (6 << 24) | /* Active to Precharge Delay */ \
  122. (10 << 28)) /* Exit Self Refresh to Active Delay */
  123. #define CONFIG_SYS_SDRC_CR_VAL_128MB \
  124. (AT91_SDRAMC_NC_10 | \
  125. AT91_SDRAMC_NR_13 | \
  126. AT91_SDRAMC_NB_4 | \
  127. AT91_SDRAMC_CAS_2 | \
  128. AT91_SDRAMC_DBW_32 | \
  129. (2 << 8) | /* Write Recovery Delay */ \
  130. (9 << 12) | /* Row Cycle Delay */ \
  131. (3 << 16) | /* Row Precharge Delay */ \
  132. (3 << 20) | /* Row to Column Delay */ \
  133. (6 << 24) | /* Active to Precharge Delay */ \
  134. (10 << 28)) /* Exit Self Refresh to Active Delay */
  135. #elif defined(CONFIG_CPU9260)
  136. #define CONFIG_SYS_SDRC_CR_VAL_64MB \
  137. (AT91_SDRAMC_NC_9 | \
  138. AT91_SDRAMC_NR_13 | \
  139. AT91_SDRAMC_NB_4 | \
  140. AT91_SDRAMC_CAS_2 | \
  141. AT91_SDRAMC_DBW_32 | \
  142. (2 << 8) | /* Write Recovery Delay */ \
  143. (7 << 12) | /* Row Cycle Delay */ \
  144. (2 << 16) | /* Row Precharge Delay */ \
  145. (2 << 20) | /* Row to Column Delay */ \
  146. (5 << 24) | /* Active to Precharge Delay */ \
  147. (8 << 28)) /* Exit Self Refresh to Active Delay */
  148. #define CONFIG_SYS_SDRC_CR_VAL_128MB \
  149. (AT91_SDRAMC_NC_10 | \
  150. AT91_SDRAMC_NR_13 | \
  151. AT91_SDRAMC_NB_4 | \
  152. AT91_SDRAMC_CAS_2 | \
  153. AT91_SDRAMC_DBW_32 | \
  154. (2 << 8) | /* Write Recovery Delay */ \
  155. (7 << 12) | /* Row Cycle Delay */ \
  156. (2 << 16) | /* Row Precharge Delay */ \
  157. (2 << 20) | /* Row to Column Delay */ \
  158. (5 << 24) | /* Active to Precharge Delay */ \
  159. (8 << 28)) /* Exit Self Refresh to Active Delay */
  160. #endif
  161. /* Memory Device Register -> SDRAM */
  162. #define CONFIG_SYS_SDRC_MDR_VAL AT91_SDRAMC_MD_SDRAM
  163. #define CONFIG_SYS_SDRC_MR_VAL2 AT91_SDRAMC_MODE_PRECHARGE
  164. #define CONFIG_SYS_SDRAM_VAL1 0 /* SDRAM_BASE */
  165. #define CONFIG_SYS_SDRC_MR_VAL3 AT91_SDRAMC_MODE_REFRESH
  166. #define CONFIG_SYS_SDRAM_VAL2 0 /* SDRAM_BASE */
  167. #define CONFIG_SYS_SDRAM_VAL3 0 /* SDRAM_BASE */
  168. #define CONFIG_SYS_SDRAM_VAL4 0 /* SDRAM_BASE */
  169. #define CONFIG_SYS_SDRAM_VAL5 0 /* SDRAM_BASE */
  170. #define CONFIG_SYS_SDRAM_VAL6 0 /* SDRAM_BASE */
  171. #define CONFIG_SYS_SDRAM_VAL7 0 /* SDRAM_BASE */
  172. #define CONFIG_SYS_SDRAM_VAL8 0 /* SDRAM_BASE */
  173. #define CONFIG_SYS_SDRAM_VAL9 0 /* SDRAM_BASE */
  174. #define CONFIG_SYS_SDRC_MR_VAL4 AT91_SDRAMC_MODE_LMR
  175. #define CONFIG_SYS_SDRAM_VAL10 0 /* SDRAM_BASE */
  176. #define CONFIG_SYS_SDRC_MR_VAL5 AT91_SDRAMC_MODE_NORMAL
  177. #define CONFIG_SYS_SDRAM_VAL11 0 /* SDRAM_BASE */
  178. #define CONFIG_SYS_SDRC_TR_VAL2 1200 /* SDRAM_TR */
  179. #define CONFIG_SYS_SDRAM_VAL12 0 /* SDRAM_BASE */
  180. /* setup SMC0, CS0 (NOR Flash) - 16-bit */
  181. #if defined(CONFIG_CPU9G20)
  182. #define CONFIG_SYS_SMC0_SETUP0_VAL \
  183. (AT91_SMC_NWESETUP_(0) | AT91_SMC_NCS_WRSETUP_(0) | \
  184. AT91_SMC_NRDSETUP_(0) | AT91_SMC_NCS_RDSETUP_(0))
  185. #define CONFIG_SYS_SMC0_PULSE0_VAL \
  186. (AT91_SMC_NWEPULSE_(8) | AT91_SMC_NCS_WRPULSE_(8) | \
  187. AT91_SMC_NRDPULSE_(14) | AT91_SMC_NCS_RDPULSE_(14))
  188. #define CONFIG_SYS_SMC0_CYCLE0_VAL \
  189. (AT91_SMC_NWECYCLE_(8) | AT91_SMC_NRDCYCLE_(14))
  190. #define CONFIG_SYS_SMC0_MODE0_VAL \
  191. (AT91_SMC_READMODE | AT91_SMC_WRITEMODE | \
  192. AT91_SMC_DBW_16 | \
  193. AT91_SMC_TDFMODE | \
  194. AT91_SMC_TDF_(3))
  195. #elif defined(CONFIG_CPU9260)
  196. #define CONFIG_SYS_SMC0_SETUP0_VAL \
  197. (AT91_SMC_NWESETUP_(0) | AT91_SMC_NCS_WRSETUP_(0) | \
  198. AT91_SMC_NRDSETUP_(0) | AT91_SMC_NCS_RDSETUP_(0))
  199. #define CONFIG_SYS_SMC0_PULSE0_VAL \
  200. (AT91_SMC_NWEPULSE_(6) | AT91_SMC_NCS_WRPULSE_(6) | \
  201. AT91_SMC_NRDPULSE_(10) | AT91_SMC_NCS_RDPULSE_(10))
  202. #define CONFIG_SYS_SMC0_CYCLE0_VAL \
  203. (AT91_SMC_NWECYCLE_(6) | AT91_SMC_NRDCYCLE_(10))
  204. #define CONFIG_SYS_SMC0_MODE0_VAL \
  205. (AT91_SMC_READMODE | AT91_SMC_WRITEMODE | \
  206. AT91_SMC_DBW_16 | \
  207. AT91_SMC_TDFMODE | \
  208. AT91_SMC_TDF_(2))
  209. #endif
  210. /* user reset enable */
  211. #define CONFIG_SYS_RSTC_RMR_VAL \
  212. (AT91_RSTC_KEY | \
  213. AT91_RSTC_PROCRST | \
  214. AT91_RSTC_RSTTYP_WAKEUP | \
  215. AT91_RSTC_RSTTYP_WATCHDOG)
  216. /* Disable Watchdog */
  217. #define CONFIG_SYS_WDTC_WDMR_VAL \
  218. (AT91_WDT_WDIDLEHLT | AT91_WDT_WDDBGHLT | \
  219. AT91_WDT_WDV | \
  220. AT91_WDT_WDDIS | \
  221. AT91_WDT_WDD)
  222. /*
  223. * Hardware drivers
  224. */
  225. #define CONFIG_AT91_GPIO 1
  226. #define CONFIG_ATMEL_USART 1
  227. #undef CONFIG_USART0
  228. #undef CONFIG_USART1
  229. #undef CONFIG_USART2
  230. #define CONFIG_USART3 1 /* USART 3 is DBGU */
  231. #define CONFIG_BOOTDELAY 3
  232. /*
  233. * BOOTP options
  234. */
  235. #define CONFIG_BOOTP_BOOTFILESIZE 1
  236. #define CONFIG_BOOTP_BOOTPATH 1
  237. #define CONFIG_BOOTP_GATEWAY 1
  238. #define CONFIG_BOOTP_HOSTNAME 1
  239. /*
  240. * Command line configuration.
  241. */
  242. #include <config_cmd_default.h>
  243. #undef CONFIG_CMD_BDI
  244. #undef CONFIG_CMD_IMI
  245. #undef CONFIG_CMD_FPGA
  246. #undef CONFIG_CMD_LOADS
  247. #undef CONFIG_CMD_IMLS
  248. #define CONFIG_CMD_PING 1
  249. #define CONFIG_CMD_DHCP 1
  250. #define CONFIG_CMD_NAND 1
  251. #define CONFIG_CMD_USB 1
  252. #define CONFIG_CMD_FAT 1
  253. /* SDRAM */
  254. #define CONFIG_NR_DRAM_BANKS 1
  255. #define PHYS_SDRAM 0x20000000
  256. #if defined(CONFIG_CPU9260_128M) || defined(CONFIG_CPU9G20_128M)
  257. #define PHYS_SDRAM_SIZE 0x08000000 /* 128 MB */
  258. #define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_128MB
  259. #else
  260. #define PHYS_SDRAM_SIZE 0x04000000 /* 64 MB */
  261. #define CONFIG_SYS_SDRC_CR_VAL CONFIG_SYS_SDRC_CR_VAL_64MB
  262. #endif
  263. /* NAND flash */
  264. #define CONFIG_NAND_ATMEL 1
  265. #define NAND_MAX_CHIPS 1
  266. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  267. #define CONFIG_SYS_NAND_BASE 0x40000000
  268. #define CONFIG_SYS_NAND_DBW_8 1
  269. #define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC13
  270. #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14
  271. #define CONFIG_SYS_NAND_MASK_ALE (1 << 21)
  272. #define CONFIG_SYS_NAND_MASK_CLE (1 << 22)
  273. /* NOR flash */
  274. #define CONFIG_SYS_FLASH_CFI 1
  275. #define CONFIG_FLASH_CFI_DRIVER 1
  276. #define PHYS_FLASH_1 0x10000000
  277. #define PHYS_FLASH_2 0x12000000
  278. #define CONFIG_SYS_FLASH_BANKS_LIST \
  279. { PHYS_FLASH_1, PHYS_FLASH_2 }
  280. #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1
  281. #define CONFIG_SYS_MAX_FLASH_SECT (255+4)
  282. #define CONFIG_SYS_MAX_FLASH_BANKS 2
  283. #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
  284. #define CONFIG_SYS_FLASH_EMPTY_INFO 1
  285. #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
  286. #define CONFIG_SYS_FLASH_PROTECTION 1
  287. #define CONFIG_SYS_MONITOR_BASE PHYS_FLASH_1
  288. /* Ethernet */
  289. #define CONFIG_MACB 1
  290. #define CONFIG_RMII 1
  291. #define CONFIG_RESET_PHY_R 1
  292. #define CONFIG_NET_MULTI 1
  293. #define CONFIG_NET_RETRY_COUNT 20
  294. #define CONFIG_MACB_SEARCH_PHY 1
  295. /* LEDS */
  296. /* Status LED */
  297. #define CONFIG_STATUS_LED 1 /* Status LED enabled */
  298. #define CONFIG_BOARD_SPECIFIC_LED 1
  299. #define STATUS_LED_RED 0
  300. #define STATUS_LED_GREEN 1
  301. #define STATUS_LED_YELLOW 2
  302. #define STATUS_LED_BLUE 3
  303. /* Red */
  304. #define STATUS_LED_BIT STATUS_LED_RED
  305. #define STATUS_LED_STATE STATUS_LED_OFF
  306. #define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
  307. /* Green */
  308. #define STATUS_LED_BIT1 STATUS_LED_GREEN
  309. #define STATUS_LED_STATE1 STATUS_LED_OFF
  310. #define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)
  311. /* Yellow */
  312. #define STATUS_LED_BIT2 STATUS_LED_YELLOW
  313. #define STATUS_LED_STATE2 STATUS_LED_OFF
  314. #define STATUS_LED_PERIOD2 (CONFIG_SYS_HZ / 2)
  315. /* Blue */
  316. #define STATUS_LED_BIT3 STATUS_LED_BLUE
  317. #define STATUS_LED_STATE3 STATUS_LED_ON
  318. #define STATUS_LED_PERIOD3 (CONFIG_SYS_HZ / 2)
  319. /* Optional value */
  320. #define STATUS_LED_BOOT STATUS_LED_BIT
  321. #define CONFIG_RED_LED AT91_PIN_PC11
  322. #define CONFIG_GREEN_LED AT91_PIN_PC12
  323. #define CONFIG_YELLOW_LED AT91_PIN_PC7
  324. #define CONFIG_BLUE_LED AT91_PIN_PC9
  325. /* USB */
  326. #define CONFIG_USB_ATMEL 1
  327. #define CONFIG_USB_OHCI_NEW 1
  328. #define CONFIG_DOS_PARTITION 1
  329. #define CONFIG_SYS_USB_OHCI_CPU_INIT 1
  330. #define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00500000
  331. #define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9260"
  332. #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
  333. #define CONFIG_USB_STORAGE 1
  334. #define CONFIG_SYS_LOAD_ADDR 0x21000000
  335. #define CONFIG_SYS_MEMTEST_START PHYS_SDRAM
  336. #define CONFIG_SYS_MEMTEST_END 0x21e00000
  337. #undef CONFIG_SYS_USE_NANDFLASH
  338. #define CONFIG_SYS_USE_FLASH 1
  339. #if defined(CONFIG_SYS_USE_FLASH)
  340. #define CONFIG_ENV_IS_IN_FLASH 1
  341. #define CONFIG_ENV_OFFSET 0x40000
  342. #define CONFIG_ENV_SECT_SIZE 0x20000
  343. #define CONFIG_ENV_SIZE 0x20000
  344. #define CONFIG_ENV_OVERWRITE 1
  345. #define CONFIG_BOOTCOMMAND "run flashboot"
  346. #define MTDIDS_DEFAULT "nor0=physmap-flash.0,nand0=atmel_nand"
  347. #define MTDPARTS_DEFAULT \
  348. "mtdparts=physmap-flash.0:" \
  349. "256k(u-boot)ro," \
  350. "128k(u-boot-env)ro," \
  351. "1792k(kernel)," \
  352. "-(rootfs);" \
  353. "atmel_nand:-(nand)"
  354. #define CONFIG_BOOTARGS "root=/dev/mtdblock3 rootfstype=jffs2 "
  355. #if defined(CONFIG_CPU9G20)
  356. #define CONFIG_SYS_BASEDIR "cpu9G20"
  357. #elif defined(CONFIG_CPU9260)
  358. #define CONFIG_SYS_BASEDIR "cpu9260"
  359. #endif
  360. #define CONFIG_EXTRA_ENV_SETTINGS \
  361. "mtdids=" MTDIDS_DEFAULT "\0" \
  362. "mtdparts=" MTDPARTS_DEFAULT "\0" \
  363. "partition=nand0,0\0" \
  364. "ramargs=setenv bootargs $(bootargs) $(mtdparts)\0" \
  365. "ramboot=tftpboot 0x22000000 cpu9260/uImage;" \
  366. "run ramargs;bootm 22000000\0" \
  367. "flashboot=run ramargs;bootm 0x10060000\0" \
  368. "basedir=" CONFIG_SYS_BASEDIR "\0" \
  369. "updtub=tftp 0x24000000 $(basedir)/u-boot.bin;protect " \
  370. "off 0x10000000 0x1003ffff;erase 0x10000000 " \
  371. "0x1003ffff;cp.b 0x24000000 0x10000000 " \
  372. "$(filesize)\0" \
  373. "updtui=tftp 0x24000000 $(basedir)/uImage;protect off" \
  374. " 0x10060000 0x1021ffff;erase 0x10060000 " \
  375. "0x1021ffff;cp.b 0x24000000 0x10060000 " \
  376. "$(filesize)\0" \
  377. "updtrfs=tftp 0x24000000 $(basedir)/rootfs.jffs2; " \
  378. "protect off 0x10220000 0x13ffffff;erase " \
  379. "0x10220000 0x13ffffff;cp.b 0x24000000 " \
  380. "0x10220000 $(filesize)\0" \
  381. ""
  382. #endif
  383. #define CONFIG_BAUDRATE 115200
  384. #define CONFIG_SYS_BAUDRATE_TABLE {115200 , 19200, 38400, 57600, 9600 }
  385. #if defined(CONFIG_CPU9G20)
  386. #define CONFIG_SYS_PROMPT "CPU9G20=> "
  387. #elif defined(CONFIG_CPU9260)
  388. #define CONFIG_SYS_PROMPT "CPU9260=> "
  389. #endif
  390. #define CONFIG_SYS_CBSIZE 256
  391. #define CONFIG_SYS_MAXARGS 16
  392. #define CONFIG_SYS_PBSIZE \
  393. (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  394. #define CONFIG_SYS_LONGHELP 1
  395. #define CONFIG_CMDLINE_EDITING 1
  396. #define CONFIG_SILENT_CONSOLE 1
  397. #define CONFIG_NETCONSOLE 1
  398. /*
  399. * Size of malloc() pool
  400. */
  401. #define CONFIG_SYS_MALLOC_LEN \
  402. ROUND(3 * CONFIG_ENV_SIZE + 128 * 1024, 0x1000)
  403. #define CONFIG_SYS_GBL_DATA_SIZE 128
  404. #define CONFIG_STACKSIZE (32 * 1024)
  405. #if defined(CONFIG_USE_IRQ)
  406. #error CONFIG_USE_IRQ not supported
  407. #endif
  408. #endif