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_FLASH_CFI_DRIVER 23479accb6SThomas Chou #define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */ 24479accb6SThomas Chou #define CONFIG_SYS_FLASH_CFI 25479accb6SThomas Chou #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 26479accb6SThomas Chou #define CONFIG_SYS_FLASH_PROTECTION 27479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 1 28479accb6SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT 512 29479accb6SThomas Chou 30479accb6SThomas Chou /* 31479accb6SThomas Chou * NET options 32479accb6SThomas Chou */ 33479accb6SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER 0 34479accb6SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 35479accb6SThomas Chou #define CONFIG_PHY_MARVELL 36479accb6SThomas Chou 37479accb6SThomas Chou /* 38479accb6SThomas Chou * BOOTP options 39479accb6SThomas Chou */ 40479accb6SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE 41479accb6SThomas Chou 42479accb6SThomas Chou /* 43479accb6SThomas Chou * FDT options 44479accb6SThomas Chou */ 45479accb6SThomas Chou #define CONFIG_LMB 46479accb6SThomas Chou 47479accb6SThomas Chou /* 48479accb6SThomas Chou * MEMORY ORGANIZATION 49479accb6SThomas Chou * -Monitor at top of sdram. 50479accb6SThomas Chou * -The heap is placed below the monitor 51479accb6SThomas Chou * -The stack is placed below the heap (&grows down). 52479accb6SThomas Chou */ 53479accb6SThomas Chou #define CONFIG_SYS_SDRAM_BASE 0xD0000000 54479accb6SThomas Chou #define CONFIG_SYS_SDRAM_SIZE 0x08000000 55479accb6SThomas Chou #define CONFIG_NR_DRAM_BANKS 1 56479accb6SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM 577ef051ecSMarek Vasut #define CONFIG_SYS_MONITOR_LEN 0x80000 /* Reserve 512k */ 58479accb6SThomas Chou #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + \ 59479accb6SThomas Chou CONFIG_SYS_SDRAM_SIZE - \ 60479accb6SThomas Chou CONFIG_SYS_MONITOR_LEN) 61479accb6SThomas Chou #define CONFIG_SYS_MALLOC_LEN 0x20000 62479accb6SThomas Chou 63479accb6SThomas Chou /* 642aee06a2SMarek Vasut * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above 652aee06a2SMarek Vasut * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the 662aee06a2SMarek Vasut * reset address, no? This will keep the environment in user region 672aee06a2SMarek Vasut * of flash. NOTE: the monitor length must be multiple of sector size 682aee06a2SMarek Vasut * (which is common practice). 692aee06a2SMarek Vasut */ 702aee06a2SMarek Vasut 712aee06a2SMarek Vasut #define CONFIG_ENV_SIZE 0x20000 /* 128k, 1 sector */ 722aee06a2SMarek Vasut #define CONFIG_ENV_OVERWRITE /* Serial change Ok */ 732aee06a2SMarek Vasut #define CONFIG_ENV_ADDR (0xe2800000 + CONFIG_SYS_MONITOR_LEN) 742aee06a2SMarek Vasut 752aee06a2SMarek Vasut /* 76479accb6SThomas Chou * MISC 77479accb6SThomas Chou */ 78bc3abe14SMarek Vasut #define CONFIG_SYS_LOAD_ADDR 0xd4000000 /* Half of RAM */ 79bc3abe14SMarek Vasut #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR 80479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 81479accb6SThomas Chou #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MONITOR_BASE - \ 82479accb6SThomas Chou CONFIG_ENV_SIZE - \ 83479accb6SThomas Chou CONFIG_SYS_MALLOC_LEN - \ 84479accb6SThomas Chou 0x10000) 85479accb6SThomas Chou 86479accb6SThomas Chou #endif /* __CONFIG_H */ 87