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