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