Convert CONFIG_ESDHC_DETECT_QUIRK to Kconfig
[platform/kernel/u-boot.git] / include / configs / ls1012a2g5rdb.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2017, 2021 NXP
4  */
5
6 #ifndef __LS1012A2G5RDB_H__
7 #define __LS1012A2G5RDB_H__
8
9 #include "ls1012a_common.h"
10
11 /* DDR */
12 #define CONFIG_SYS_SDRAM_SIZE           0x40000000
13
14 /* SATA */
15
16 #define CONFIG_SYS_SATA                         AHCI_BASE_ADDR
17
18 #undef CONFIG_EXTRA_ENV_SETTINGS
19 #define CONFIG_EXTRA_ENV_SETTINGS               \
20         "verify=no\0"                           \
21         "initrd_high=0xffffffffffffffff\0"      \
22         "kernel_addr=0x01000000\0"              \
23         "kernelheader_addr=0x800000\0"          \
24         "scriptaddr=0x80000000\0"               \
25         "scripthdraddr=0x80080000\0"            \
26         "fdtheader_addr_r=0x80100000\0"         \
27         "kernelheader_addr_r=0x80200000\0"      \
28         "kernel_addr_r=0x81000000\0"            \
29         "fdt_addr_r=0x90000000\0"               \
30         "load_addr=0xa0000000\0"                \
31         "kernel_size=0x2800000\0"               \
32         "kernelheader_size=0x40000\0"           \
33         "bootm_size=0x10000000\0"               \
34         "console=ttyS0,115200\0"                \
35         BOOTENV                                 \
36         "boot_scripts=ls1012ardb_boot.scr\0"    \
37         "boot_script_hdr=hdr_ls1012ardb_bs.out\0"       \
38         "scan_dev_for_boot_part="               \
39              "part list ${devtype} ${devnum} devplist; "        \
40              "env exists devplist || setenv devplist 1; "       \
41              "for distro_bootpart in ${devplist}; do "          \
42                   "if fstype ${devtype} "                       \
43                       "${devnum}:${distro_bootpart} "           \
44                       "bootfstype; then "                       \
45                       "run scan_dev_for_boot; " \
46                   "fi; "                        \
47               "done\0"                          \
48         "boot_a_script="                                  \
49                 "load ${devtype} ${devnum}:${distro_bootpart} "  \
50                         "${scriptaddr} ${prefix}${script}; "    \
51                 "env exists secureboot && load ${devtype} "     \
52                         "${devnum}:${distro_bootpart} "         \
53                         "${scripthdraddr} ${prefix}${boot_script_hdr} " \
54                         "&& esbc_validate ${scripthdraddr};"    \
55                 "source ${scriptaddr}\0"          \
56         "installer=load mmc 0:2 $load_addr "    \
57                    "/flex_installer_arm64.itb; "        \
58                    "bootm $load_addr#$board\0"  \
59         "qspi_bootcmd=echo Trying load from qspi..;"    \
60                 "sf probe && sf read $load_addr "       \
61                 "$kernel_addr $kernel_size; env exists secureboot "     \
62                 "&& sf read $kernelheader_addr_r $kernelheader_addr "   \
63                 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; " \
64                 "bootm $load_addr#$board\0"
65
66 #ifdef CONFIG_TFABOOT
67 #undef QSPI_NOR_BOOTCOMMAND
68 #define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd; run qspi_bootcmd; " \
69                              "env exists secureboot && esbc_halt;"
70 #endif
71
72 #define DEFAULT_PFE_MDIO_NAME "PFE_MDIO"
73 #define DEFAULT_PFE_MDIO1_NAME "PFE_MDIO1"
74
75 #include <asm/fsl_secure_boot.h>
76
77 #endif /* __LS1012A2G5RDB_H__ */