1479accb6SThomas Chou /* 2479accb6SThomas Chou * (C) Copyright 2005, Psyent Corporation <www.psyent.com> 3479accb6SThomas Chou * Scott McNutt <smcnutt@psyent.com> 4479accb6SThomas Chou * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw> 5479accb6SThomas Chou * 6479accb6SThomas Chou * SPDX-License-Identifier: GPL-2.0+ 7479accb6SThomas Chou */ 8479accb6SThomas Chou 9479accb6SThomas Chou #ifndef __CONFIG_H 10479accb6SThomas Chou #define __CONFIG_H 11479accb6SThomas Chou 12479accb6SThomas Chou /* 13479accb6SThomas Chou * BOARD/CPU 14479accb6SThomas Chou */ 15479accb6SThomas Chou #define CONFIG_DISPLAY_CPUINFO 16479accb6SThomas Chou #define CONFIG_DISPLAY_BOARDINFO_LATE 17479accb6SThomas Chou 18479accb6SThomas Chou /* 19479accb6SThomas Chou * SERIAL 20479accb6SThomas Chou */ 21479accb6SThomas Chou #define CONFIG_BAUDRATE 115200 22479accb6SThomas Chou #define CONFIG_SYS_CONSOLE_INFO_QUIET /* Suppress console info */ 23479accb6SThomas Chou 24479accb6SThomas Chou /* 25479accb6SThomas Chou * CFI Flash 26479accb6SThomas Chou */ 27479accb6SThomas Chou #define CONFIG_FLASH_CFI_DRIVER 28479accb6SThomas Chou #define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */ 29479accb6SThomas Chou #define CONFIG_SYS_FLASH_CFI 30479accb6SThomas Chou #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 31479accb6SThomas Chou #define CONFIG_SYS_FLASH_PROTECTION 32479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 1 33479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT 512 34479accb6SThomas Chou 35479accb6SThomas Chou /* 36479accb6SThomas Chou * NET options 37479accb6SThomas Chou */ 38479accb6SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER 0 39479accb6SThomas Chou #define CONFIG_CMD_MII 40479accb6SThomas Chou #define CONFIG_PHY_GIGE 41479accb6SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 42479accb6SThomas Chou #define CONFIG_PHY_MARVELL 43479accb6SThomas Chou 44479accb6SThomas Chou /* 45479accb6SThomas Chou * BOOTP options 46479accb6SThomas Chou */ 47479accb6SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE 48479accb6SThomas Chou #define CONFIG_BOOTP_BOOTPATH 49479accb6SThomas Chou #define CONFIG_BOOTP_GATEWAY 50479accb6SThomas Chou #define CONFIG_BOOTP_HOSTNAME 51479accb6SThomas Chou 52479accb6SThomas Chou /* 53479accb6SThomas Chou * FDT options 54479accb6SThomas Chou */ 55479accb6SThomas Chou #define CONFIG_OF_LIBFDT 56479accb6SThomas Chou #define CONFIG_OF_BOARD_SETUP 57479accb6SThomas Chou #define CONFIG_LMB 58479accb6SThomas Chou 59479accb6SThomas Chou /* 60479accb6SThomas Chou * MEMORY ORGANIZATION 61479accb6SThomas Chou * -Monitor at top of sdram. 62479accb6SThomas Chou * -The heap is placed below the monitor 63479accb6SThomas Chou * -The stack is placed below the heap (&grows down). 64479accb6SThomas Chou */ 65479accb6SThomas Chou #define CONFIG_SYS_SDRAM_BASE 0xD0000000 66479accb6SThomas Chou #define CONFIG_SYS_SDRAM_SIZE 0x08000000 67479accb6SThomas Chou #define CONFIG_NR_DRAM_BANKS 1 68479accb6SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM 697ef051ecSMarek Vasut #define CONFIG_SYS_MONITOR_LEN 0x80000 /* Reserve 512k */ 70479accb6SThomas Chou #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + \ 71479accb6SThomas Chou CONFIG_SYS_SDRAM_SIZE - \ 72479accb6SThomas Chou CONFIG_SYS_MONITOR_LEN) 73479accb6SThomas Chou #define CONFIG_SYS_MALLOC_LEN 0x20000 74479accb6SThomas Chou 75479accb6SThomas Chou /* 762aee06a2SMarek Vasut * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above 772aee06a2SMarek Vasut * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the 782aee06a2SMarek Vasut * reset address, no? This will keep the environment in user region 792aee06a2SMarek Vasut * of flash. NOTE: the monitor length must be multiple of sector size 802aee06a2SMarek Vasut * (which is common practice). 812aee06a2SMarek Vasut */ 822aee06a2SMarek Vasut #define CONFIG_ENV_IS_IN_FLASH 832aee06a2SMarek Vasut 842aee06a2SMarek Vasut #define CONFIG_ENV_SIZE 0x20000 /* 128k, 1 sector */ 852aee06a2SMarek Vasut #define CONFIG_ENV_OVERWRITE /* Serial change Ok */ 862aee06a2SMarek Vasut #define CONFIG_ENV_ADDR (0xe2800000 + CONFIG_SYS_MONITOR_LEN) 872aee06a2SMarek Vasut 882aee06a2SMarek Vasut /* 89479accb6SThomas Chou * MISC 90479accb6SThomas Chou */ 91479accb6SThomas Chou #define CONFIG_SYS_LONGHELP /* Provide extended help */ 92479accb6SThomas Chou #define CONFIG_SYS_CBSIZE 256 /* Console I/O buf size */ 93479accb6SThomas Chou #define CONFIG_SYS_MAXARGS 16 /* Max command args */ 94479accb6SThomas Chou #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Bootarg buf size */ 95479accb6SThomas Chou #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 96479accb6SThomas Chou sizeof(CONFIG_SYS_PROMPT) + \ 97479accb6SThomas Chou 16) /* Print buf size */ 98*bc3abe14SMarek Vasut #define CONFIG_SYS_LOAD_ADDR 0xd4000000 /* Half of RAM */ 99*bc3abe14SMarek Vasut #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR 100479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 101479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MONITOR_BASE - \ 102479accb6SThomas Chou CONFIG_ENV_SIZE - \ 103479accb6SThomas Chou CONFIG_SYS_MALLOC_LEN - \ 104479accb6SThomas Chou 0x10000) 105479accb6SThomas Chou #define CONFIG_CMDLINE_EDITING 106479accb6SThomas Chou 107479accb6SThomas Chou #endif /* __CONFIG_H */ 108