3 * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
6 * SPDX-License-Identifier: GPL-2.0+
15 #define CONFIG_SYS_SDRAM_BASE 0x00000000 /* DDR is system memory */
16 /* TODO: Check: Can this be unified with CONFIG_SYS_SDRAM_BASE? */
17 #define CONFIG_SYS_DDR_SDRAM_BASE CONFIG_SYS_SDRAM_BASE
28 #define CONFIG_SYS_MONITOR_LEN (512 * 1024) /* Reserve 512 kB for Mon */
31 * Initial RAM Base Address Setup
33 #define CONFIG_SYS_INIT_RAM_LOCK
34 #define CONFIG_SYS_INIT_RAM_ADDR 0xE6000000 /* Initial RAM address */
35 #define CONFIG_SYS_INIT_RAM_SIZE 0x1000 /* Size of used area in RAM */
36 #define CONFIG_SYS_GBL_DATA_OFFSET \
37 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
40 * FLASH on the Local Bus
42 #define CONFIG_SYS_FLASH_BASE 0xFE000000 /* FLASH base address */
43 #define CONFIG_SYS_FLASH_SIZE 8 /* FLASH size is up to 8M */
45 #define CONFIG_SYS_MAX_FLASH_SECT 135
47 #define CONFIG_SYS_BAUDRATE_TABLE \
48 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
54 #define CONFIG_LOADS_ECHO /* echo on for serial download */
55 #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */
58 * Miscellaneous configurable options
61 #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
63 /* Print Buffer Size */
64 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
65 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
66 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
69 * For booting Linux, the board info and command line data
70 * have to be in the first 256 MB of memory, since this is
71 * the maximum mapped by the Linux kernel during initialization.
73 #define CONFIG_SYS_BOOTMAPSZ (256 << 20) /* Initial Memory map for Linux */
76 * Environment Configuration
79 /* TODO: Turn into string option and migrate to Kconfig */
80 #define CONFIG_HOSTNAME "gazerbeam"
81 #define CONFIG_ROOTPATH "/opt/nfsroot"
83 #define CONFIG_EXTRA_ENV_SETTINGS \
85 "consoledev=ttyS1\0" \
86 "u-boot=u-boot.bin\0" \
87 "kernel_addr=1000000\0" \
89 "fdtfile=hrcon.dtb\0" \
90 "load=tftp ${loadaddr} ${u-boot}\0" \
91 "update=protect off " __stringify(CONFIG_SYS_MONITOR_BASE) \
92 " +${filesize};era " __stringify(CONFIG_SYS_MONITOR_BASE)\
93 " +${filesize};cp.b ${fileaddr} " \
94 __stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \
95 "upd=run load update\0" \
97 #endif /* __CONFIG_H */