1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2479accb6SThomas Chou /* 3479accb6SThomas Chou * (C) Copyright 2005, Psyent Corporation <www.psyent.com> 4479accb6SThomas Chou * Scott McNutt <smcnutt@psyent.com> 5479accb6SThomas Chou * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw> 6479accb6SThomas Chou */ 7479accb6SThomas Chou 8479accb6SThomas Chou #ifndef __CONFIG_H 9479accb6SThomas Chou #define __CONFIG_H 10479accb6SThomas Chou 11479accb6SThomas Chou /* 12479accb6SThomas Chou * BOARD/CPU 13479accb6SThomas Chou */ 14479accb6SThomas Chou 15479accb6SThomas Chou /* 16479accb6SThomas Chou * SERIAL 17479accb6SThomas Chou */ 18479accb6SThomas Chou 19479accb6SThomas Chou /* 20479accb6SThomas Chou * CFI Flash 21479accb6SThomas Chou */ 22479accb6SThomas Chou #define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */ 23479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 1 24479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT 512 25479accb6SThomas Chou 26479accb6SThomas Chou /* 27479accb6SThomas Chou * NET options 28479accb6SThomas Chou */ 29479accb6SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER 0 30479accb6SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 31479accb6SThomas Chou 32479accb6SThomas Chou /* 33479accb6SThomas Chou * BOOTP options 34479accb6SThomas Chou */ 35479accb6SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE 36479accb6SThomas Chou 37479accb6SThomas Chou /* 38479accb6SThomas Chou * FDT options 39479accb6SThomas Chou */ 40479accb6SThomas Chou #define CONFIG_LMB 41479accb6SThomas Chou 42479accb6SThomas Chou /* 43479accb6SThomas Chou * MEMORY ORGANIZATION 44479accb6SThomas Chou * -Monitor at top of sdram. 45479accb6SThomas Chou * -The heap is placed below the monitor 46479accb6SThomas Chou * -The stack is placed below the heap (&grows down). 47479accb6SThomas Chou */ 48479accb6SThomas Chou #define CONFIG_SYS_SDRAM_BASE 0xD0000000 49479accb6SThomas Chou #define CONFIG_SYS_SDRAM_SIZE 0x08000000 50479accb6SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM 517ef051ecSMarek Vasut #define CONFIG_SYS_MONITOR_LEN 0x80000 /* Reserve 512k */ 52479accb6SThomas Chou #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + \ 53479accb6SThomas Chou CONFIG_SYS_SDRAM_SIZE - \ 54479accb6SThomas Chou CONFIG_SYS_MONITOR_LEN) 55479accb6SThomas Chou #define CONFIG_SYS_MALLOC_LEN 0x20000 56479accb6SThomas Chou 57479accb6SThomas Chou /* 582aee06a2SMarek Vasut * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above 592aee06a2SMarek Vasut * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the 602aee06a2SMarek Vasut * reset address, no? This will keep the environment in user region 612aee06a2SMarek Vasut * of flash. NOTE: the monitor length must be multiple of sector size 622aee06a2SMarek Vasut * (which is common practice). 632aee06a2SMarek Vasut */ 642aee06a2SMarek Vasut 652aee06a2SMarek Vasut #define CONFIG_ENV_SIZE 0x20000 /* 128k, 1 sector */ 662aee06a2SMarek Vasut #define CONFIG_ENV_OVERWRITE /* Serial change Ok */ 672aee06a2SMarek Vasut #define CONFIG_ENV_ADDR (0xe2800000 + CONFIG_SYS_MONITOR_LEN) 682aee06a2SMarek Vasut 692aee06a2SMarek Vasut /* 70479accb6SThomas Chou * MISC 71479accb6SThomas Chou */ 72bc3abe14SMarek Vasut #define CONFIG_SYS_LOAD_ADDR 0xd4000000 /* Half of RAM */ 73bc3abe14SMarek Vasut #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR 74479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 75479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MONITOR_BASE - \ 76479accb6SThomas Chou CONFIG_ENV_SIZE - \ 77479accb6SThomas Chou CONFIG_SYS_MALLOC_LEN - \ 78479accb6SThomas Chou 0x10000) 79479accb6SThomas Chou 80479accb6SThomas Chou #endif /* __CONFIG_H */ 81