Merge tag 'xilinx-for-v2022.04-rc3' of https://gitlab.denx.de/u-boot/custodians/u...
[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 #undef CONFIG_USB_MAX_CONTROLLER_COUNT
13 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1
14
15 /* RTC */
16 #define CONFIG_SYS_RTC_BUS_NUM          0
17
18 /*
19  * MMC
20  */
21 #ifdef CONFIG_MMC
22 #ifndef __ASSEMBLY__
23 u8 qixis_esdhc_detect_quirk(void);
24 #endif
25 #define CONFIG_ESDHC_DETECT_QUIRK  qixis_esdhc_detect_quirk()
26 #endif
27
28 /* MAC/PHY configuration */
29 #if defined(CONFIG_FSL_MC_ENET)
30 #define CONFIG_ETHPRIME         "DPMAC17@rgmii-id"
31 #endif
32
33 /* EEPROM */
34 #define CONFIG_SYS_I2C_EEPROM_NXID
35 #define CONFIG_SYS_EEPROM_BUS_NUM               0
36
37 /* Initial environment variables */
38 #define CONFIG_EXTRA_ENV_SETTINGS               \
39         EXTRA_ENV_SETTINGS                      \
40         "boot_scripts=lx2162aqds_boot.scr\0"    \
41         "boot_script_hdr=hdr_lx2162aqds_bs.out\0"       \
42         "BOARD=lx2162aqds\0"                    \
43         "xspi_bootcmd=echo Trying load from flexspi..;"         \
44                 "sf probe 0:0 && sf read $load_addr "           \
45                 "$kernel_start $kernel_size ; env exists secureboot &&" \
46                 "sf read $kernelheader_addr_r $kernelheader_start "     \
47                 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
48                 " bootm $load_addr#$BOARD\0"                    \
49         "sd_bootcmd=echo Trying load from sd card..;"           \
50                 "mmc dev 0; 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         "sd2_bootcmd=echo Trying load from emmc card..;"        \
57                 "mmc dev 1; mmcinfo; mmc read $load_addr "      \
58                 "$kernel_addr_sd $kernel_size_sd ;"             \
59                 "env exists secureboot && mmc read $kernelheader_addr_r "\
60                 "$kernelhdr_addr_sd $kernelhdr_size_sd "        \
61                 " && esbc_validate ${kernelheader_addr_r};"     \
62                 "bootm $load_addr#$BOARD\0"
63
64 #include <asm/fsl_secure_boot.h>
65
66 #endif /* __LX2162_QDS_H */