1*479accb6SThomas Chou /* 2*479accb6SThomas Chou * (C) Copyright 2005, Psyent Corporation <www.psyent.com> 3*479accb6SThomas Chou * Scott McNutt <smcnutt@psyent.com> 4*479accb6SThomas Chou * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw> 5*479accb6SThomas Chou * 6*479accb6SThomas Chou * SPDX-License-Identifier: GPL-2.0+ 7*479accb6SThomas Chou */ 8*479accb6SThomas Chou 9*479accb6SThomas Chou #ifndef __CONFIG_H 10*479accb6SThomas Chou #define __CONFIG_H 11*479accb6SThomas Chou 12*479accb6SThomas Chou /* 13*479accb6SThomas Chou * BOARD/CPU 14*479accb6SThomas Chou */ 15*479accb6SThomas Chou #define CONFIG_DISPLAY_CPUINFO 16*479accb6SThomas Chou #define CONFIG_DISPLAY_BOARDINFO_LATE 17*479accb6SThomas Chou 18*479accb6SThomas Chou /* 19*479accb6SThomas Chou * SERIAL 20*479accb6SThomas Chou */ 21*479accb6SThomas Chou #define CONFIG_BAUDRATE 115200 22*479accb6SThomas Chou #define CONFIG_SYS_CONSOLE_INFO_QUIET /* Suppress console info */ 23*479accb6SThomas Chou 24*479accb6SThomas Chou /* 25*479accb6SThomas Chou * CFI Flash 26*479accb6SThomas Chou */ 27*479accb6SThomas Chou #define CONFIG_FLASH_CFI_DRIVER 28*479accb6SThomas Chou #define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */ 29*479accb6SThomas Chou #define CONFIG_SYS_FLASH_CFI 30*479accb6SThomas Chou #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 31*479accb6SThomas Chou #define CONFIG_SYS_FLASH_PROTECTION 32*479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 1 33*479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT 512 34*479accb6SThomas Chou 35*479accb6SThomas Chou /* 36*479accb6SThomas Chou * NET options 37*479accb6SThomas Chou */ 38*479accb6SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER 0 39*479accb6SThomas Chou #define CONFIG_CMD_MII 40*479accb6SThomas Chou #define CONFIG_PHY_GIGE 41*479accb6SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 42*479accb6SThomas Chou #define CONFIG_PHY_MARVELL 43*479accb6SThomas Chou 44*479accb6SThomas Chou /* 45*479accb6SThomas Chou * BOOTP options 46*479accb6SThomas Chou */ 47*479accb6SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE 48*479accb6SThomas Chou #define CONFIG_BOOTP_BOOTPATH 49*479accb6SThomas Chou #define CONFIG_BOOTP_GATEWAY 50*479accb6SThomas Chou #define CONFIG_BOOTP_HOSTNAME 51*479accb6SThomas Chou 52*479accb6SThomas Chou /* 53*479accb6SThomas Chou * FDT options 54*479accb6SThomas Chou */ 55*479accb6SThomas Chou #define CONFIG_OF_LIBFDT 56*479accb6SThomas Chou #define CONFIG_OF_BOARD_SETUP 57*479accb6SThomas Chou #define CONFIG_LMB 58*479accb6SThomas Chou 59*479accb6SThomas Chou /* 60*479accb6SThomas Chou * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above 61*479accb6SThomas Chou * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the 62*479accb6SThomas Chou * reset address, no? This will keep the environment in user region 63*479accb6SThomas Chou * of flash. NOTE: the monitor length must be multiple of sector size 64*479accb6SThomas Chou * (which is common practice). 65*479accb6SThomas Chou */ 66*479accb6SThomas Chou #define CONFIG_ENV_IS_IN_FLASH 67*479accb6SThomas Chou 68*479accb6SThomas Chou #define CONFIG_ENV_SIZE 0x20000 /* 128k, 1 sector */ 69*479accb6SThomas Chou #define CONFIG_ENV_OVERWRITE /* Serial change Ok */ 70*479accb6SThomas Chou #define CONFIG_ENV_ADDR 0xe2840000 71*479accb6SThomas Chou 72*479accb6SThomas Chou /* 73*479accb6SThomas Chou * MEMORY ORGANIZATION 74*479accb6SThomas Chou * -Monitor at top of sdram. 75*479accb6SThomas Chou * -The heap is placed below the monitor 76*479accb6SThomas Chou * -The stack is placed below the heap (&grows down). 77*479accb6SThomas Chou */ 78*479accb6SThomas Chou #define CONFIG_SYS_SDRAM_BASE 0xD0000000 79*479accb6SThomas Chou #define CONFIG_SYS_SDRAM_SIZE 0x08000000 80*479accb6SThomas Chou #define CONFIG_NR_DRAM_BANKS 1 81*479accb6SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM 82*479accb6SThomas Chou #define CONFIG_SYS_MONITOR_LEN 0x40000 /* Reserve 256k */ 83*479accb6SThomas Chou #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + \ 84*479accb6SThomas Chou CONFIG_SYS_SDRAM_SIZE - \ 85*479accb6SThomas Chou CONFIG_SYS_MONITOR_LEN) 86*479accb6SThomas Chou #define CONFIG_SYS_MALLOC_LEN 0x20000 87*479accb6SThomas Chou 88*479accb6SThomas Chou /* 89*479accb6SThomas Chou * MISC 90*479accb6SThomas Chou */ 91*479accb6SThomas Chou #define CONFIG_SYS_LONGHELP /* Provide extended help */ 92*479accb6SThomas Chou #define CONFIG_SYS_CBSIZE 256 /* Console I/O buf size */ 93*479accb6SThomas Chou #define CONFIG_SYS_MAXARGS 16 /* Max command args */ 94*479accb6SThomas Chou #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Bootarg buf size */ 95*479accb6SThomas Chou #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 96*479accb6SThomas Chou sizeof(CONFIG_SYS_PROMPT) + \ 97*479accb6SThomas Chou 16) /* Print buf size */ 98*479accb6SThomas Chou #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE 99*479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 100*479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MONITOR_BASE - \ 101*479accb6SThomas Chou CONFIG_ENV_SIZE - \ 102*479accb6SThomas Chou CONFIG_SYS_MALLOC_LEN - \ 103*479accb6SThomas Chou 0x10000) 104*479accb6SThomas Chou #define CONFIG_CMDLINE_EDITING 105*479accb6SThomas Chou #define CONFIG_CMD_GPIO 106*479accb6SThomas Chou 107*479accb6SThomas Chou #endif /* __CONFIG_H */ 108