1 /* SPDX-License-Identifier: GPL-2.0+ */
3 #ifndef __SL28_CONFIG_H
4 #define __SL28_CONFIG_H
6 #include <asm/arch/stream_id_lsch3.h>
7 #include <asm/arch/config.h>
8 #include <asm/arch/soc.h>
10 /* we don't use hwconfig but this has to be defined.. */
11 #define HWCONFIG_BUFFER_SIZE 256
13 /* we don't have secure memory unless we have a BL31 */
14 #ifndef CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT
15 #undef CONFIG_SYS_MEM_RESERVE_SECURE
19 #define CONFIG_MEM_INIT_VALUE 0xdeadbeef
21 #define CONFIG_VERY_BIG_RAM
22 #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
23 #define CONFIG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
24 #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
25 #define CONFIG_SYS_DDR_BLOCK2_BASE 0x2080000000ULL
27 /* early stack pointer */
30 #define CPU_RELEASE_ADDR secondary_boot_addr
34 /* early heap for SPL DM */
35 #define CONFIG_MALLOC_F_ADDR CONFIG_SYS_FSL_OCRAM_BASE
38 #define CONFIG_SYS_NS16550_CLK (get_bus_freq(0) / 2)
40 #define COUNTER_FREQUENCY_REAL (get_board_sys_clk() / 4)
44 #define CONFIG_SYS_MONITOR_LEN (1024 * 1024)
46 /* GUID for capsule updatable firmware image */
47 #define KONTRON_SL28_FIT_IMAGE_GUID \
48 EFI_GUID(0x86ebd44f, 0xfeb8, 0x466f, 0x8b, 0xb8, \
49 0x89, 0x06, 0x18, 0x45, 0x6d, 0x8b)
52 /* see include/configs/ti_armv7_common.h */
53 #define ENV_MEM_LAYOUT_SETTINGS \
54 "loadaddr=0x82000000\0" \
55 "kernel_addr_r=0x82000000\0" \
56 "fdt_addr_r=0x88000000\0" \
57 "bootm_size=0x10000000\0" \
58 "pxefile_addr_r=0x80100000\0" \
59 "scriptaddr=0x80000000\0" \
60 "ramdisk_addr_r=0x88080000\0"
62 #define BOOT_TARGET_DEVICES(func) \
70 #include <config_distro_bootcmd.h>
72 #define CONFIG_EXTRA_ENV_SETTINGS \
73 "env_addr=0x203e0004\0" \
74 "envload=env import -d -b ${env_addr}\0" \
75 "install_rcw=source 20200000\0" \
76 "fdtfile=freescale/fsl-ls1028a-kontron-sl28.dtb\0" \
77 "dfu_alt_info=sf 0:0=u-boot-bin raw 0x210000 0x1d0000;" \
78 "u-boot-env raw 0x3e0000 0x20000\0" \
79 ENV_MEM_LAYOUT_SETTINGS \
82 #endif /* __SL28_CONFIG_H */