blob: df46e586f35fa278e8cbc6d36ae1bd7d336bb89c [file] [log] [blame]
Michael Walle4ceb5c62020-10-15 23:08:57 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2
Michael Walle7bc683a2022-05-30 23:02:10 +02003#ifndef __SL28_CONFIG_H
4#define __SL28_CONFIG_H
Michael Walle4ceb5c62020-10-15 23:08:57 +02005
6#include <asm/arch/stream_id_lsch3.h>
7#include <asm/arch/config.h>
8#include <asm/arch/soc.h>
9
10/* we don't use hwconfig but this has to be defined.. */
11#define HWCONFIG_BUFFER_SIZE 256
12
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
16#endif
17
18/* DDR */
Michael Walle4ceb5c62020-10-15 23:08:57 +020019#define CONFIG_MEM_INIT_VALUE 0xdeadbeef
20
21#define CONFIG_VERY_BIG_RAM
Michael Walle4ceb5c62020-10-15 23:08:57 +020022#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
Michael Walle4ceb5c62020-10-15 23:08:57 +020026
27/* early stack pointer */
Michael Walle4ceb5c62020-10-15 23:08:57 +020028
Michael Walle4ceb5c62020-10-15 23:08:57 +020029/* SMP */
30#define CPU_RELEASE_ADDR secondary_boot_addr
31
32/* generic timer */
Michael Walle4ceb5c62020-10-15 23:08:57 +020033
Michael Walle4ceb5c62020-10-15 23:08:57 +020034/* early heap for SPL DM */
35#define CONFIG_MALLOC_F_ADDR CONFIG_SYS_FSL_OCRAM_BASE
36
37/* serial port */
Michael Walle4ceb5c62020-10-15 23:08:57 +020038#define CONFIG_SYS_NS16550_CLK (get_bus_freq(0) / 2)
Michael Walle4ceb5c62020-10-15 23:08:57 +020039
Michael Walle4ceb5c62020-10-15 23:08:57 +020040/* SPL */
Michael Walle4ceb5c62020-10-15 23:08:57 +020041
Michael Walle4ceb5c62020-10-15 23:08:57 +020042#define CONFIG_SYS_MONITOR_LEN (1024 * 1024)
43
Sughosh Ganu741ef862022-04-15 11:29:34 +053044/* GUID for capsule updatable firmware image */
45#define KONTRON_SL28_FIT_IMAGE_GUID \
46 EFI_GUID(0x86ebd44f, 0xfeb8, 0x466f, 0x8b, 0xb8, \
47 0x89, 0x06, 0x18, 0x45, 0x6d, 0x8b)
48
Michael Walle4ceb5c62020-10-15 23:08:57 +020049/* environment */
50/* see include/configs/ti_armv7_common.h */
Michael Walle4ceb5c62020-10-15 23:08:57 +020051#define ENV_MEM_LAYOUT_SETTINGS \
52 "loadaddr=0x82000000\0" \
53 "kernel_addr_r=0x82000000\0" \
54 "fdt_addr_r=0x88000000\0" \
55 "bootm_size=0x10000000\0" \
56 "pxefile_addr_r=0x80100000\0" \
57 "scriptaddr=0x80000000\0" \
58 "ramdisk_addr_r=0x88080000\0"
59
60#define BOOT_TARGET_DEVICES(func) \
Michael Walle4ceb5c62020-10-15 23:08:57 +020061 func(MMC, mmc, 0) \
Michael Wallee668bec2020-12-20 22:35:13 +010062 func(MMC, mmc, 1) \
Michael Walle4ceb5c62020-10-15 23:08:57 +020063 func(NVME, nvme, 0) \
64 func(USB, usb, 0) \
Michael Walle805b2422021-01-08 00:08:59 +010065 func(SCSI, scsi, 0) \
Michael Walle4ceb5c62020-10-15 23:08:57 +020066 func(DHCP, dhcp, 0) \
67 func(PXE, pxe, 0)
68#include <config_distro_bootcmd.h>
69
70#define CONFIG_EXTRA_ENV_SETTINGS \
71 "env_addr=0x203e0004\0" \
72 "envload=env import -d -b ${env_addr}\0" \
73 "install_rcw=source 20200000\0" \
74 "fdtfile=freescale/fsl-ls1028a-kontron-sl28.dtb\0" \
Michael Walleed302542021-11-09 14:48:51 +053075 "dfu_alt_info=sf 0:0=u-boot-bin raw 0x210000 0x1d0000;" \
76 "u-boot-env raw 0x3e0000 0x20000\0" \
Michael Walle4ceb5c62020-10-15 23:08:57 +020077 ENV_MEM_LAYOUT_SETTINGS \
78 BOOTENV
79
Michael Walle7bc683a2022-05-30 23:02:10 +020080#endif /* __SL28_CONFIG_H */