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_BOARDINFO_LATE 16479accb6SThomas Chou 17479accb6SThomas Chou /* 18479accb6SThomas Chou * SERIAL 19479accb6SThomas Chou */ 20479accb6SThomas Chou 21479accb6SThomas Chou /* 22479accb6SThomas Chou * CFI Flash 23479accb6SThomas Chou */ 24479accb6SThomas Chou #define CONFIG_FLASH_CFI_DRIVER 25479accb6SThomas Chou #define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */ 26479accb6SThomas Chou #define CONFIG_SYS_FLASH_CFI 27479accb6SThomas Chou #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 28479accb6SThomas Chou #define CONFIG_SYS_FLASH_PROTECTION 29479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 1 30479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT 512 31479accb6SThomas Chou 32479accb6SThomas Chou /* 33479accb6SThomas Chou * NET options 34479accb6SThomas Chou */ 35479accb6SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER 0 36479accb6SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 37479accb6SThomas Chou #define CONFIG_PHY_MARVELL 38479accb6SThomas Chou 39479accb6SThomas Chou /* 40479accb6SThomas Chou * BOOTP options 41479accb6SThomas Chou */ 42479accb6SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE 43479accb6SThomas Chou #define CONFIG_BOOTP_BOOTPATH 44479accb6SThomas Chou #define CONFIG_BOOTP_GATEWAY 45479accb6SThomas Chou #define CONFIG_BOOTP_HOSTNAME 46479accb6SThomas Chou 47479accb6SThomas Chou /* 48479accb6SThomas Chou * FDT options 49479accb6SThomas Chou */ 50479accb6SThomas Chou #define CONFIG_LMB 51479accb6SThomas Chou 52479accb6SThomas Chou /* 53479accb6SThomas Chou * MEMORY ORGANIZATION 54479accb6SThomas Chou * -Monitor at top of sdram. 55479accb6SThomas Chou * -The heap is placed below the monitor 56479accb6SThomas Chou * -The stack is placed below the heap (&grows down). 57479accb6SThomas Chou */ 58479accb6SThomas Chou #define CONFIG_SYS_SDRAM_BASE 0xD0000000 59479accb6SThomas Chou #define CONFIG_SYS_SDRAM_SIZE 0x08000000 60479accb6SThomas Chou #define CONFIG_NR_DRAM_BANKS 1 61479accb6SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM 627ef051ecSMarek Vasut #define CONFIG_SYS_MONITOR_LEN 0x80000 /* Reserve 512k */ 63479accb6SThomas Chou #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + \ 64479accb6SThomas Chou CONFIG_SYS_SDRAM_SIZE - \ 65479accb6SThomas Chou CONFIG_SYS_MONITOR_LEN) 66479accb6SThomas Chou #define CONFIG_SYS_MALLOC_LEN 0x20000 67479accb6SThomas Chou 68479accb6SThomas Chou /* 692aee06a2SMarek Vasut * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above 702aee06a2SMarek Vasut * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the 712aee06a2SMarek Vasut * reset address, no? This will keep the environment in user region 722aee06a2SMarek Vasut * of flash. NOTE: the monitor length must be multiple of sector size 732aee06a2SMarek Vasut * (which is common practice). 742aee06a2SMarek Vasut */ 752aee06a2SMarek Vasut 762aee06a2SMarek Vasut #define CONFIG_ENV_SIZE 0x20000 /* 128k, 1 sector */ 772aee06a2SMarek Vasut #define CONFIG_ENV_OVERWRITE /* Serial change Ok */ 782aee06a2SMarek Vasut #define CONFIG_ENV_ADDR (0xe2800000 + CONFIG_SYS_MONITOR_LEN) 792aee06a2SMarek Vasut 802aee06a2SMarek Vasut /* 81479accb6SThomas Chou * MISC 82479accb6SThomas Chou */ 83479accb6SThomas Chou #define CONFIG_SYS_LONGHELP /* Provide extended help */ 84bc3abe14SMarek Vasut #define CONFIG_SYS_LOAD_ADDR 0xd4000000 /* Half of RAM */ 85bc3abe14SMarek Vasut #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR 86479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 87479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MONITOR_BASE - \ 88479accb6SThomas Chou CONFIG_ENV_SIZE - \ 89479accb6SThomas Chou CONFIG_SYS_MALLOC_LEN - \ 90479accb6SThomas Chou 0x10000) 91*aeea8754SMarek Vasut #define CONFIG_AUTO_COMPLETE 92479accb6SThomas Chou #define CONFIG_CMDLINE_EDITING 93479accb6SThomas Chou 94479accb6SThomas Chou #endif /* __CONFIG_H */ 95