]>
Commit | Line | Data |
---|---|---|
d494cdb9 DE |
1 | /* |
2 | * (C) Copyright 2015 | |
3 | * Dirk Eibach, Guntermann & Drunck GmbH, [email protected] | |
4 | * | |
5 | * | |
6 | * SPDX-License-Identifier: GPL-2.0+ | |
7 | */ | |
8 | ||
9 | #ifndef __CONFIG_H | |
10 | #define __CONFIG_H | |
11 | ||
12 | /* | |
13 | * DDR Setup | |
14 | */ | |
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 | |
18 | ||
19 | /* | |
20 | * Memory test | |
21 | * TODO: Migrate! | |
22 | */ | |
d494cdb9 DE |
23 | |
24 | /* | |
25 | * The reserved memory | |
26 | */ | |
d494cdb9 | 27 | |
d494cdb9 DE |
28 | /* |
29 | * Initial RAM Base Address Setup | |
30 | */ | |
d494cdb9 DE |
31 | #define CONFIG_SYS_INIT_RAM_ADDR 0xE6000000 /* Initial RAM address */ |
32 | #define CONFIG_SYS_INIT_RAM_SIZE 0x1000 /* Size of used area in RAM */ | |
d494cdb9 DE |
33 | |
34 | /* | |
35 | * FLASH on the Local Bus | |
36 | */ | |
37 | #define CONFIG_SYS_FLASH_BASE 0xFE000000 /* FLASH base address */ | |
38 | #define CONFIG_SYS_FLASH_SIZE 8 /* FLASH size is up to 8M */ | |
39 | ||
d494cdb9 DE |
40 | #define CONFIG_SYS_BAUDRATE_TABLE \ |
41 | {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} | |
42 | ||
d494cdb9 DE |
43 | /* |
44 | * Miscellaneous configurable options | |
45 | */ | |
d494cdb9 | 46 | |
d494cdb9 DE |
47 | /* |
48 | * For booting Linux, the board info and command line data | |
49 | * have to be in the first 256 MB of memory, since this is | |
50 | * the maximum mapped by the Linux kernel during initialization. | |
51 | */ | |
52 | #define CONFIG_SYS_BOOTMAPSZ (256 << 20) /* Initial Memory map for Linux */ | |
53 | ||
54 | /* | |
55 | * Environment Configuration | |
56 | */ | |
d494cdb9 | 57 | |
d494cdb9 DE |
58 | /* TODO: Turn into string option and migrate to Kconfig */ |
59 | #define CONFIG_HOSTNAME "gazerbeam" | |
60 | #define CONFIG_ROOTPATH "/opt/nfsroot" | |
d494cdb9 | 61 | |
d494cdb9 DE |
62 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
63 | "netdev=eth0\0" \ | |
64 | "consoledev=ttyS1\0" \ | |
65 | "u-boot=u-boot.bin\0" \ | |
66 | "kernel_addr=1000000\0" \ | |
67 | "fdt_addr=C00000\0" \ | |
68 | "fdtfile=hrcon.dtb\0" \ | |
69 | "load=tftp ${loadaddr} ${u-boot}\0" \ | |
70 | "update=protect off " __stringify(CONFIG_SYS_MONITOR_BASE) \ | |
71 | " +${filesize};era " __stringify(CONFIG_SYS_MONITOR_BASE)\ | |
72 | " +${filesize};cp.b ${fileaddr} " \ | |
73 | __stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \ | |
74 | "upd=run load update\0" \ | |
75 | ||
d494cdb9 | 76 | #endif /* __CONFIG_H */ |