Convert CONFIG_SPL_TARGET to Kconfig
[platform/kernel/u-boot.git] / include / configs / lx2160aqds.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2018-2020 NXP
4  */
5
6 #ifndef __LX2_QDS_H
7 #define __LX2_QDS_H
8
9 #include "lx2160a_common.h"
10
11 /* RTC */
12 #define CONFIG_SYS_RTC_BUS_NUM          0
13
14 /*
15  * MMC
16  */
17 #ifdef CONFIG_MMC
18 #ifndef __ASSEMBLY__
19 u8 qixis_esdhc_detect_quirk(void);
20 #endif
21 #define CONFIG_ESDHC_DETECT_QUIRK  qixis_esdhc_detect_quirk()
22 #endif
23
24 /* MAC/PHY configuration */
25
26 /* EEPROM */
27 #define CONFIG_SYS_I2C_EEPROM_NXID
28 #define CONFIG_SYS_EEPROM_BUS_NUM               0
29
30 /* Initial environment variables */
31 #define CONFIG_EXTRA_ENV_SETTINGS               \
32         EXTRA_ENV_SETTINGS                      \
33         "boot_scripts=lx2160aqds_boot.scr\0"    \
34         "boot_script_hdr=hdr_lx2160aqds_bs.out\0"       \
35         "BOARD=lx2160aqds\0"                    \
36         "xspi_bootcmd=echo Trying load from flexspi..;"         \
37                 "sf probe 0:0 && sf read $load_addr "           \
38                 "$kernel_start $kernel_size ; env exists secureboot &&" \
39                 "sf read $kernelheader_addr_r $kernelheader_start "     \
40                 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
41                 " bootm $load_addr#$BOARD\0"                    \
42         "sd_bootcmd=echo Trying load from sd card..;"           \
43                 "mmc dev 0; mmcinfo; mmc read $load_addr "                      \
44                 "$kernel_addr_sd $kernel_size_sd ;"             \
45                 "env exists secureboot && mmc read $kernelheader_addr_r "\
46                 "$kernelhdr_addr_sd $kernelhdr_size_sd "        \
47                 " && esbc_validate ${kernelheader_addr_r};"     \
48                 "bootm $load_addr#$BOARD\0"                     \
49         "sd2_bootcmd=echo Trying load from emmc card..;"        \
50                 "mmc dev 1; mmcinfo; mmc read $load_addr "      \
51                 "$kernel_addr_sd $kernel_size_sd ;"             \
52                 "env exists secureboot && mmc read $kernelheader_addr_r "\
53                 "$kernelhdr_addr_sd $kernelhdr_size_sd "        \
54                 " && esbc_validate ${kernelheader_addr_r};"     \
55                 "bootm $load_addr#$BOARD\0"
56
57 #include <asm/fsl_secure_boot.h>
58
59 #endif /* __LX2_QDS_H */