1 /* SPDX-License-Identifier: GPL-2.0+ */
9 #include "lx2160a_common.h"
12 #undef CONFIG_USB_MAX_CONTROLLER_COUNT
13 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1
15 /* Voltage monitor on channel 2*/
16 #define CONFIG_VID_FLS_ENV "lx2162aqds_vdd_mv"
18 #define CONFIG_VOL_MONITOR_LTC3882_SET
19 #define CONFIG_VOL_MONITOR_LTC3882_READ
22 #define CONFIG_SYS_RTC_BUS_NUM 0
29 u8 qixis_esdhc_detect_quirk(void);
31 #define CONFIG_ESDHC_DETECT_QUIRK qixis_esdhc_detect_quirk()
34 /* MAC/PHY configuration */
35 #if defined(CONFIG_FSL_MC_ENET)
37 #define CONFIG_ETHPRIME "DPMAC17@rgmii-id"
41 #define CONFIG_ID_EEPROM
42 #define CONFIG_SYS_I2C_EEPROM_NXID
43 #define CONFIG_SYS_EEPROM_BUS_NUM 0
44 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57
45 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
46 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
47 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
49 /* Initial environment variables */
50 #define CONFIG_EXTRA_ENV_SETTINGS \
52 "boot_scripts=lx2162aqds_boot.scr\0" \
53 "boot_script_hdr=hdr_lx2162aqds_bs.out\0" \
54 "BOARD=lx2162aqds\0" \
55 "xspi_bootcmd=echo Trying load from flexspi..;" \
56 "sf probe 0:0 && sf read $load_addr " \
57 "$kernel_start $kernel_size ; env exists secureboot &&" \
58 "sf read $kernelheader_addr_r $kernelheader_start " \
59 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
60 " bootm $load_addr#$BOARD\0" \
61 "sd_bootcmd=echo Trying load from sd card..;" \
62 "mmc dev 0; mmcinfo; mmc read $load_addr " \
63 "$kernel_addr_sd $kernel_size_sd ;" \
64 "env exists secureboot && mmc read $kernelheader_addr_r "\
65 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
66 " && esbc_validate ${kernelheader_addr_r};" \
67 "bootm $load_addr#$BOARD\0" \
68 "emmc_bootcmd=echo Trying load from emmc card..;" \
69 "mmc dev 1; mmcinfo; mmc read $load_addr " \
70 "$kernel_addr_sd $kernel_size_sd ;" \
71 "env exists secureboot && mmc read $kernelheader_addr_r "\
72 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
73 " && esbc_validate ${kernelheader_addr_r};" \
74 "bootm $load_addr#$BOARD\0"
76 #include <asm/fsl_secure_boot.h>
78 #endif /* __LX2162_QDS_H */