1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2017, 2021 NXP
6 #ifndef __LS1012A2G5RDB_H__
7 #define __LS1012A2G5RDB_H__
9 #include "ls1012a_common.h"
12 #define CONFIG_SYS_SDRAM_SIZE 0x40000000
16 #define CONFIG_SYS_SATA AHCI_BASE_ADDR
18 #undef CONFIG_EXTRA_ENV_SETTINGS
19 #define CONFIG_EXTRA_ENV_SETTINGS \
21 "initrd_high=0xffffffffffffffff\0" \
22 "fdt_addr=0x00f00000\0" \
23 "kernel_addr=0x01000000\0" \
24 "kernelheader_addr=0x800000\0" \
25 "scriptaddr=0x80000000\0" \
26 "scripthdraddr=0x80080000\0" \
27 "fdtheader_addr_r=0x80100000\0" \
28 "kernelheader_addr_r=0x80200000\0" \
29 "kernel_addr_r=0x81000000\0" \
30 "fdt_addr_r=0x90000000\0" \
31 "load_addr=0xa0000000\0" \
32 "kernel_size=0x2800000\0" \
33 "kernelheader_size=0x40000\0" \
34 "bootm_size=0x10000000\0" \
35 "console=ttyS0,115200\0" \
37 "boot_scripts=ls1012ardb_boot.scr\0" \
38 "boot_script_hdr=hdr_ls1012ardb_bs.out\0" \
39 "scan_dev_for_boot_part=" \
40 "part list ${devtype} ${devnum} devplist; " \
41 "env exists devplist || setenv devplist 1; " \
42 "for distro_bootpart in ${devplist}; do " \
43 "if fstype ${devtype} " \
44 "${devnum}:${distro_bootpart} " \
46 "run scan_dev_for_boot; " \
50 "load ${devtype} ${devnum}:${distro_bootpart} " \
51 "${scriptaddr} ${prefix}${script}; " \
52 "env exists secureboot && load ${devtype} " \
53 "${devnum}:${distro_bootpart} " \
54 "${scripthdraddr} ${prefix}${boot_script_hdr} " \
55 "&& esbc_validate ${scripthdraddr};" \
56 "source ${scriptaddr}\0" \
57 "installer=load mmc 0:2 $load_addr " \
58 "/flex_installer_arm64.itb; " \
59 "bootm $load_addr#$board\0" \
60 "qspi_bootcmd=echo Trying load from qspi..;" \
61 "sf probe && sf read $load_addr " \
62 "$kernel_addr $kernel_size; env exists secureboot " \
63 "&& sf read $kernelheader_addr_r $kernelheader_addr " \
64 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; " \
65 "bootm $load_addr#$board\0"
68 #undef QSPI_NOR_BOOTCOMMAND
69 #define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd; run qspi_bootcmd; " \
70 "env exists secureboot && esbc_halt;"
73 #define DEFAULT_PFE_MDIO_NAME "PFE_MDIO"
74 #define DEFAULT_PFE_MDIO1_NAME "PFE_MDIO1"
76 #include <asm/fsl_secure_boot.h>
78 #endif /* __LS1012A2G5RDB_H__ */