Merge tag 'dm-pull-28jun22' of https://source.denx.de/u-boot/custodians/u-boot-dm...
[platform/kernel/u-boot.git] / include / configs / lx2162aqds.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2020-2021 NXP
4  */
5
6 #ifndef __LX2162_QDS_H
7 #define __LX2162_QDS_H
8
9 #include "lx2160a_common.h"
10
11 /* USB */
12
13 /* RTC */
14 #define CONFIG_SYS_RTC_BUS_NUM          0
15
16 /* EEPROM */
17 #define CONFIG_SYS_I2C_EEPROM_NXID
18 #define CONFIG_SYS_EEPROM_BUS_NUM               0
19
20 /* Initial environment variables */
21 #define CONFIG_EXTRA_ENV_SETTINGS               \
22         EXTRA_ENV_SETTINGS                      \
23         "boot_scripts=lx2162aqds_boot.scr\0"    \
24         "boot_script_hdr=hdr_lx2162aqds_bs.out\0"       \
25         "BOARD=lx2162aqds\0"                    \
26         "xspi_bootcmd=echo Trying load from flexspi..;"         \
27                 "sf probe 0:0 && sf read $load_addr "           \
28                 "$kernel_start $kernel_size ; env exists secureboot &&" \
29                 "sf read $kernelheader_addr_r $kernelheader_start "     \
30                 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
31                 " bootm $load_addr#$BOARD\0"                    \
32         "sd_bootcmd=echo Trying load from sd card..;"           \
33                 "mmc dev 0; mmcinfo; mmc read $load_addr "                      \
34                 "$kernel_addr_sd $kernel_size_sd ;"             \
35                 "env exists secureboot && mmc read $kernelheader_addr_r "\
36                 "$kernelhdr_addr_sd $kernelhdr_size_sd "        \
37                 " && esbc_validate ${kernelheader_addr_r};"     \
38                 "bootm $load_addr#$BOARD\0"                     \
39         "sd2_bootcmd=echo Trying load from emmc card..;"        \
40                 "mmc dev 1; mmcinfo; mmc read $load_addr "      \
41                 "$kernel_addr_sd $kernel_size_sd ;"             \
42                 "env exists secureboot && mmc read $kernelheader_addr_r "\
43                 "$kernelhdr_addr_sd $kernelhdr_size_sd "        \
44                 " && esbc_validate ${kernelheader_addr_r};"     \
45                 "bootm $load_addr#$BOARD\0"
46
47 #include <asm/fsl_secure_boot.h>
48
49 #endif /* __LX2162_QDS_H */