15c0f9822SThomas Chou /* 25c0f9822SThomas Chou * (C) Copyright 2005, Psyent Corporation <www.psyent.com> 35c0f9822SThomas Chou * Scott McNutt <smcnutt@psyent.com> 45c0f9822SThomas Chou * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw> 55c0f9822SThomas Chou * 65c0f9822SThomas Chou * SPDX-License-Identifier: GPL-2.0+ 75c0f9822SThomas Chou */ 85c0f9822SThomas Chou 95c0f9822SThomas Chou #ifndef __CONFIG_H 105c0f9822SThomas Chou #define __CONFIG_H 115c0f9822SThomas Chou 125c0f9822SThomas Chou /* 135c0f9822SThomas Chou * BOARD/CPU 145c0f9822SThomas Chou */ 155c0f9822SThomas Chou #define CONFIG_DISPLAY_CPUINFO 165c0f9822SThomas Chou #define CONFIG_DISPLAY_BOARDINFO_LATE 175c0f9822SThomas Chou 185c0f9822SThomas Chou /* 195c0f9822SThomas Chou * SERIAL 205c0f9822SThomas Chou */ 215c0f9822SThomas Chou #define CONFIG_BAUDRATE 115200 225c0f9822SThomas Chou #define CONFIG_SYS_CONSOLE_INFO_QUIET /* Suppress console info */ 232f3a5feeSThomas Chou #define CONFIG_SYS_NS16550_MEM32 245c0f9822SThomas Chou 255c0f9822SThomas Chou /* 265c0f9822SThomas Chou * Flash 275c0f9822SThomas Chou */ 285c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS 1 295c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT 1024 305c0f9822SThomas Chou #define CONFIG_MTD_DEVICE 315c0f9822SThomas Chou 325c0f9822SThomas Chou /* 335c0f9822SThomas Chou * NET options 345c0f9822SThomas Chou */ 355c0f9822SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER 0 365c0f9822SThomas Chou #define CONFIG_CMD_MII 375c0f9822SThomas Chou #define CONFIG_PHY_GIGE 385c0f9822SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 395c0f9822SThomas Chou #define CONFIG_PHY_MARVELL 405c0f9822SThomas Chou 415c0f9822SThomas Chou /* 425c0f9822SThomas Chou * BOOTP options 435c0f9822SThomas Chou */ 445c0f9822SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE 455c0f9822SThomas Chou #define CONFIG_BOOTP_BOOTPATH 465c0f9822SThomas Chou #define CONFIG_BOOTP_GATEWAY 475c0f9822SThomas Chou #define CONFIG_BOOTP_HOSTNAME 485c0f9822SThomas Chou 495c0f9822SThomas Chou /* 505c0f9822SThomas Chou * FDT options 515c0f9822SThomas Chou */ 525c0f9822SThomas Chou #define CONFIG_OF_LIBFDT 535c0f9822SThomas Chou #define CONFIG_OF_BOARD_SETUP 545c0f9822SThomas Chou #define CONFIG_LMB 555c0f9822SThomas Chou 565c0f9822SThomas Chou /* 575c0f9822SThomas Chou * MEMORY ORGANIZATION 585c0f9822SThomas Chou * -Monitor at top of sdram. 595c0f9822SThomas Chou * -The heap is placed below the monitor 605c0f9822SThomas Chou * -The stack is placed below the heap (&grows down). 615c0f9822SThomas Chou */ 625c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_BASE 0xc8000000 635c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_SIZE 0x08000000 645c0f9822SThomas Chou #define CONFIG_NR_DRAM_BANKS 1 655c0f9822SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM 66*7ef051ecSMarek Vasut #define CONFIG_SYS_MONITOR_LEN 0x80000 /* Reserve 512k */ 675c0f9822SThomas Chou #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + \ 685c0f9822SThomas Chou CONFIG_SYS_SDRAM_SIZE - \ 695c0f9822SThomas Chou CONFIG_SYS_MONITOR_LEN) 705c0f9822SThomas Chou #define CONFIG_SYS_MALLOC_LEN 0x20000 715c0f9822SThomas Chou 725c0f9822SThomas Chou /* 732aee06a2SMarek Vasut * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above 742aee06a2SMarek Vasut * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the 752aee06a2SMarek Vasut * reset address, no? This will keep the environment in user region 762aee06a2SMarek Vasut * of flash. NOTE: the monitor length must be multiple of sector size 772aee06a2SMarek Vasut * (which is common practice). 782aee06a2SMarek Vasut */ 792aee06a2SMarek Vasut #define CONFIG_ENV_IS_IN_FLASH 802aee06a2SMarek Vasut 812aee06a2SMarek Vasut #define CONFIG_ENV_SIZE 0x10000 /* 64k, 1 sector */ 822aee06a2SMarek Vasut #define CONFIG_ENV_OVERWRITE /* Serial change Ok */ 832aee06a2SMarek Vasut #define CONFIG_ENV_ADDR (0xf4000000 + CONFIG_SYS_MONITOR_LEN) 842aee06a2SMarek Vasut 852aee06a2SMarek Vasut /* 865c0f9822SThomas Chou * MISC 875c0f9822SThomas Chou */ 885c0f9822SThomas Chou #define CONFIG_SYS_LONGHELP /* Provide extended help */ 895c0f9822SThomas Chou #define CONFIG_SYS_CBSIZE 256 /* Console I/O buf size */ 905c0f9822SThomas Chou #define CONFIG_SYS_MAXARGS 16 /* Max command args */ 915c0f9822SThomas Chou #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Bootarg buf size */ 925c0f9822SThomas Chou #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 935c0f9822SThomas Chou sizeof(CONFIG_SYS_PROMPT) + \ 945c0f9822SThomas Chou 16) /* Print buf size */ 955c0f9822SThomas Chou #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE 965c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 975c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MONITOR_BASE - \ 985c0f9822SThomas Chou CONFIG_ENV_SIZE - \ 995c0f9822SThomas Chou CONFIG_SYS_MALLOC_LEN - \ 1005c0f9822SThomas Chou 0x10000) 1015c0f9822SThomas Chou #define CONFIG_CMDLINE_EDITING 1025c0f9822SThomas Chou 1035c0f9822SThomas Chou #endif /* __CONFIG_H */ 104