1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2018,2020 NXP
9 #include "lx2160a_common.h"
12 #define CONFIG_VID_FLS_ENV "lx2160ardb_vdd_mv"
14 #define CONFIG_VOL_MONITOR_LTC3882_SET
15 #define CONFIG_VOL_MONITOR_LTC3882_READ
18 #define CONFIG_SYS_RTC_BUS_NUM 4
20 /* MAC/PHY configuration */
21 #if defined(CONFIG_FSL_MC_ENET)
23 #define CONFIG_ETHPRIME "DPMAC1@xgmii"
27 #define I2C_MUX_CH_EMC2305 0x09
28 #define I2C_EMC2305_ADDR 0x4D
29 #define I2C_EMC2305_CMD 0x40
30 #define I2C_EMC2305_PWM 0x80
33 #define CONFIG_ID_EEPROM
34 #define CONFIG_SYS_I2C_EEPROM_NXID
35 #define CONFIG_SYS_EEPROM_BUS_NUM 0
36 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57
37 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
38 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
39 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
41 /* Initial environment variables */
42 #define CONFIG_EXTRA_ENV_SETTINGS \
44 "boot_scripts=lx2160ardb_boot.scr\0" \
45 "boot_script_hdr=hdr_lx2160ardb_bs.out\0" \
46 "BOARD=lx2160ardb\0" \
47 "xspi_bootcmd=echo Trying load from flexspi..;" \
48 "sf probe 0:0 && sf read $load_addr " \
49 "$kernel_start $kernel_size ; env exists secureboot &&" \
50 "sf read $kernelheader_addr_r $kernelheader_start " \
51 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
52 " bootm $load_addr#$BOARD\0" \
53 "sd_bootcmd=echo Trying load from sd card..;" \
54 "mmc dev 0; mmcinfo; mmc read $load_addr " \
55 "$kernel_addr_sd $kernel_size_sd ;" \
56 "env exists secureboot && mmc read $kernelheader_addr_r "\
57 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
58 " && esbc_validate ${kernelheader_addr_r};" \
59 "bootm $load_addr#$BOARD\0" \
60 "sd2_bootcmd=echo Trying load from emmc card..;" \
61 "mmc dev 1; mmcinfo; mmc read $load_addr " \
62 "$kernel_addr_sd $kernel_size_sd ;" \
63 "env exists secureboot && mmc read $kernelheader_addr_r "\
64 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
65 " && esbc_validate ${kernelheader_addr_r};" \
66 "bootm $load_addr#$BOARD\0"
68 #include <asm/fsl_secure_boot.h>
70 #endif /* __LX2_RDB_H */