blob: 940bfd2b336afa25041121f3c1c63358f27405a7 [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
Tom Rini65cc0e22022-11-16 13:10:41 -050015#undef CFG_SYS_MEM_RESERVE_SECURE
Michael Walle4ceb5c62020-10-15 23:08:57 +020016#endif
17
Tom Rini65cc0e22022-11-16 13:10:41 -050018#define CFG_SYS_DDR_SDRAM_BASE 0x80000000
Tom Rini6cc04542022-10-28 20:27:13 -040019#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
Tom Rini65cc0e22022-11-16 13:10:41 -050020#define CFG_SYS_SDRAM_BASE CFG_SYS_DDR_SDRAM_BASE
21#define CFG_SYS_DDR_BLOCK2_BASE 0x2080000000ULL
Michael Walle4ceb5c62020-10-15 23:08:57 +020022
23/* early stack pointer */
Michael Walle4ceb5c62020-10-15 23:08:57 +020024
Michael Walle4ceb5c62020-10-15 23:08:57 +020025/* SMP */
26#define CPU_RELEASE_ADDR secondary_boot_addr
27
28/* generic timer */
Michael Walle4ceb5c62020-10-15 23:08:57 +020029
Michael Walle4ceb5c62020-10-15 23:08:57 +020030/* early heap for SPL DM */
Tom Rinidd5b58c2022-12-04 10:04:49 -050031#define CFG_MALLOC_F_ADDR CFG_SYS_FSL_OCRAM_BASE
Michael Walle4ceb5c62020-10-15 23:08:57 +020032
33/* serial port */
Tom Rini91092132022-11-16 13:10:28 -050034#define CFG_SYS_NS16550_CLK (get_bus_freq(0) / 2)
Michael Walle4ceb5c62020-10-15 23:08:57 +020035
Michael Walle4ceb5c62020-10-15 23:08:57 +020036/* SPL */
Michael Walle4ceb5c62020-10-15 23:08:57 +020037
Sughosh Ganu741ef862022-04-15 11:29:34 +053038/* GUID for capsule updatable firmware image */
39#define KONTRON_SL28_FIT_IMAGE_GUID \
40 EFI_GUID(0x86ebd44f, 0xfeb8, 0x466f, 0x8b, 0xb8, \
41 0x89, 0x06, 0x18, 0x45, 0x6d, 0x8b)
42
Michael Walle4ceb5c62020-10-15 23:08:57 +020043/* environment */
44/* see include/configs/ti_armv7_common.h */
Michael Walle4ceb5c62020-10-15 23:08:57 +020045#define ENV_MEM_LAYOUT_SETTINGS \
46 "loadaddr=0x82000000\0" \
47 "kernel_addr_r=0x82000000\0" \
48 "fdt_addr_r=0x88000000\0" \
49 "bootm_size=0x10000000\0" \
50 "pxefile_addr_r=0x80100000\0" \
51 "scriptaddr=0x80000000\0" \
52 "ramdisk_addr_r=0x88080000\0"
53
54#define BOOT_TARGET_DEVICES(func) \
Michael Walle4ceb5c62020-10-15 23:08:57 +020055 func(MMC, mmc, 0) \
Michael Wallee668bec2020-12-20 22:35:13 +010056 func(MMC, mmc, 1) \
Michael Walle4ceb5c62020-10-15 23:08:57 +020057 func(NVME, nvme, 0) \
58 func(USB, usb, 0) \
Michael Walle805b2422021-01-08 00:08:59 +010059 func(SCSI, scsi, 0) \
Michael Walle4ceb5c62020-10-15 23:08:57 +020060 func(DHCP, dhcp, 0) \
61 func(PXE, pxe, 0)
62#include <config_distro_bootcmd.h>
63
Tom Rini0613c362022-12-04 10:03:50 -050064#define CFG_EXTRA_ENV_SETTINGS \
Michael Walle4ceb5c62020-10-15 23:08:57 +020065 "env_addr=0x203e0004\0" \
66 "envload=env import -d -b ${env_addr}\0" \
67 "install_rcw=source 20200000\0" \
68 "fdtfile=freescale/fsl-ls1028a-kontron-sl28.dtb\0" \
Michael Walleed302542021-11-09 14:48:51 +053069 "dfu_alt_info=sf 0:0=u-boot-bin raw 0x210000 0x1d0000;" \
70 "u-boot-env raw 0x3e0000 0x20000\0" \
Michael Walle4ceb5c62020-10-15 23:08:57 +020071 ENV_MEM_LAYOUT_SETTINGS \
72 BOOTENV
73
Michael Walle7bc683a2022-05-30 23:02:10 +020074#endif /* __SL28_CONFIG_H */