2020-10-15 21:08:57 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
|
2022-05-30 21:02:10 +00:00
|
|
|
#ifndef __SL28_CONFIG_H
|
|
|
|
#define __SL28_CONFIG_H
|
2020-10-15 21:08:57 +00:00
|
|
|
|
|
|
|
#include <asm/arch/stream_id_lsch3.h>
|
|
|
|
#include <asm/arch/config.h>
|
|
|
|
#include <asm/arch/soc.h>
|
|
|
|
|
|
|
|
/* we don't use hwconfig but this has to be defined.. */
|
|
|
|
#define HWCONFIG_BUFFER_SIZE 256
|
|
|
|
|
|
|
|
/* we don't have secure memory unless we have a BL31 */
|
|
|
|
#ifndef CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT
|
2022-11-16 18:10:41 +00:00
|
|
|
#undef CFG_SYS_MEM_RESERVE_SECURE
|
2020-10-15 21:08:57 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* DDR */
|
|
|
|
#define CONFIG_MEM_INIT_VALUE 0xdeadbeef
|
|
|
|
|
|
|
|
#define CONFIG_VERY_BIG_RAM
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_DDR_SDRAM_BASE 0x80000000
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE CFG_SYS_DDR_SDRAM_BASE
|
|
|
|
#define CFG_SYS_DDR_BLOCK2_BASE 0x2080000000ULL
|
2020-10-15 21:08:57 +00:00
|
|
|
|
|
|
|
/* early stack pointer */
|
|
|
|
|
|
|
|
/* SMP */
|
|
|
|
#define CPU_RELEASE_ADDR secondary_boot_addr
|
|
|
|
|
|
|
|
/* generic timer */
|
|
|
|
|
|
|
|
/* early heap for SPL DM */
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CONFIG_MALLOC_F_ADDR CFG_SYS_FSL_OCRAM_BASE
|
2020-10-15 21:08:57 +00:00
|
|
|
|
|
|
|
/* serial port */
|
2022-11-16 18:10:28 +00:00
|
|
|
#define CFG_SYS_NS16550_CLK (get_bus_freq(0) / 2)
|
2020-10-15 21:08:57 +00:00
|
|
|
|
|
|
|
/* SPL */
|
|
|
|
|
2022-04-15 05:59:34 +00:00
|
|
|
/* GUID for capsule updatable firmware image */
|
|
|
|
#define KONTRON_SL28_FIT_IMAGE_GUID \
|
|
|
|
EFI_GUID(0x86ebd44f, 0xfeb8, 0x466f, 0x8b, 0xb8, \
|
|
|
|
0x89, 0x06, 0x18, 0x45, 0x6d, 0x8b)
|
|
|
|
|
2020-10-15 21:08:57 +00:00
|
|
|
/* environment */
|
|
|
|
/* see include/configs/ti_armv7_common.h */
|
|
|
|
#define ENV_MEM_LAYOUT_SETTINGS \
|
|
|
|
"loadaddr=0x82000000\0" \
|
|
|
|
"kernel_addr_r=0x82000000\0" \
|
|
|
|
"fdt_addr_r=0x88000000\0" \
|
|
|
|
"bootm_size=0x10000000\0" \
|
|
|
|
"pxefile_addr_r=0x80100000\0" \
|
|
|
|
"scriptaddr=0x80000000\0" \
|
|
|
|
"ramdisk_addr_r=0x88080000\0"
|
|
|
|
|
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(MMC, mmc, 0) \
|
2020-12-20 21:35:13 +00:00
|
|
|
func(MMC, mmc, 1) \
|
2020-10-15 21:08:57 +00:00
|
|
|
func(NVME, nvme, 0) \
|
|
|
|
func(USB, usb, 0) \
|
2021-01-07 23:08:59 +00:00
|
|
|
func(SCSI, scsi, 0) \
|
2020-10-15 21:08:57 +00:00
|
|
|
func(DHCP, dhcp, 0) \
|
|
|
|
func(PXE, pxe, 0)
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"env_addr=0x203e0004\0" \
|
|
|
|
"envload=env import -d -b ${env_addr}\0" \
|
|
|
|
"install_rcw=source 20200000\0" \
|
|
|
|
"fdtfile=freescale/fsl-ls1028a-kontron-sl28.dtb\0" \
|
2021-11-09 09:18:51 +00:00
|
|
|
"dfu_alt_info=sf 0:0=u-boot-bin raw 0x210000 0x1d0000;" \
|
|
|
|
"u-boot-env raw 0x3e0000 0x20000\0" \
|
2020-10-15 21:08:57 +00:00
|
|
|
ENV_MEM_LAYOUT_SETTINGS \
|
|
|
|
BOOTENV
|
|
|
|
|
2022-05-30 21:02:10 +00:00
|
|
|
#endif /* __SL28_CONFIG_H */
|