1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2018-2020 NXP
9 #include "lx2160a_common.h"
12 #define CONFIG_VID_FLS_ENV "lx2160aqds_vdd_mv"
14 #define CONFIG_VOL_MONITOR_LTC3882_SET
15 #define CONFIG_VOL_MONITOR_LTC3882_READ
18 #define CONFIG_SYS_RTC_BUS_NUM 0
25 u8 qixis_esdhc_detect_quirk(void);
27 #define CONFIG_ESDHC_DETECT_QUIRK qixis_esdhc_detect_quirk()
30 /* MAC/PHY configuration */
31 #if defined(CONFIG_FSL_MC_ENET)
33 #define CONFIG_ETHPRIME "DPMAC17@rgmii-id"
37 #define CONFIG_SYS_I2C_EEPROM_NXID
38 #define CONFIG_SYS_EEPROM_BUS_NUM 0
39 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57
40 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
41 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
42 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
44 /* Initial environment variables */
45 #define CONFIG_EXTRA_ENV_SETTINGS \
47 "boot_scripts=lx2160aqds_boot.scr\0" \
48 "boot_script_hdr=hdr_lx2160aqds_bs.out\0" \
49 "BOARD=lx2160aqds\0" \
50 "xspi_bootcmd=echo Trying load from flexspi..;" \
51 "sf probe 0:0 && sf read $load_addr " \
52 "$kernel_start $kernel_size ; env exists secureboot &&" \
53 "sf read $kernelheader_addr_r $kernelheader_start " \
54 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
55 " bootm $load_addr#$BOARD\0" \
56 "sd_bootcmd=echo Trying load from sd card..;" \
57 "mmc dev 0; 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 "sd2_bootcmd=echo Trying load from emmc card..;" \
64 "mmc dev 1; mmcinfo; mmc read $load_addr " \
65 "$kernel_addr_sd $kernel_size_sd ;" \
66 "env exists secureboot && mmc read $kernelheader_addr_r "\
67 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
68 " && esbc_validate ${kernelheader_addr_r};" \
69 "bootm $load_addr#$BOARD\0"
71 #include <asm/fsl_secure_boot.h>
73 #endif /* __LX2_QDS_H */