1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2018,2020 NXP
9 #include "lx2160a_common.h"
11 #if defined(CONFIG_FSL_MC_ENET)
12 #define AQR113C_PHY_ADDR1 0x0
13 #define AQR113C_PHY_ADDR2 0x08
17 #define I2C_MUX_CH_EMC2305 0x09
18 #define I2C_EMC2305_ADDR 0x4D
19 #define I2C_EMC2305_CMD 0x40
20 #define I2C_EMC2305_PWM 0x80
22 /* Initial environment variables */
23 #define CFG_EXTRA_ENV_SETTINGS \
25 "boot_scripts=lx2160ardb_boot.scr\0" \
26 "boot_script_hdr=hdr_lx2160ardb_bs.out\0" \
27 "BOARD=lx2160ardb\0" \
28 "xspi_bootcmd=echo Trying load from flexspi..;" \
29 "sf probe 0:0 && sf read $load_addr " \
30 "$kernel_start $kernel_size ; env exists secureboot &&" \
31 "sf read $kernelheader_addr_r $kernelheader_start " \
32 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
33 " bootm $load_addr#$BOARD\0" \
34 "sd_bootcmd=echo Trying load from sd card..;" \
35 "mmc dev 0; mmcinfo; mmc read $load_addr " \
36 "$kernel_addr_sd $kernel_size_sd ;" \
37 "env exists secureboot && mmc read $kernelheader_addr_r "\
38 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
39 " && esbc_validate ${kernelheader_addr_r};" \
40 "bootm $load_addr#$BOARD\0" \
41 "sd2_bootcmd=echo Trying load from emmc card..;" \
42 "mmc dev 1; 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"
49 #include <asm/fsl_secure_boot.h>
51 #endif /* __LX2_RDB_H */