Merge tag 'xilinx-for-v2022.04-rc3' of https://gitlab.denx.de/u-boot/custodians/u...
[platform/kernel/u-boot.git] / include / configs / lx2160ardb.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2018,2020 NXP
4  */
5
6 #ifndef __LX2_RDB_H
7 #define __LX2_RDB_H
8
9 #include "lx2160a_common.h"
10
11 /* RTC */
12 #define CONFIG_SYS_RTC_BUS_NUM          4
13
14 /* MAC/PHY configuration */
15 #if defined(CONFIG_FSL_MC_ENET)
16 #define CONFIG_ETHPRIME         "DPMAC1@xgmii"
17 #endif
18
19 /* EMC2305 */
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
24
25 /* EEPROM */
26 #define CONFIG_SYS_I2C_EEPROM_NXID
27 #define CONFIG_SYS_EEPROM_BUS_NUM                  0
28
29 /* Initial environment variables */
30 #define CONFIG_EXTRA_ENV_SETTINGS               \
31         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"
55
56 #include <asm/fsl_secure_boot.h>
57
58 #endif /* __LX2_RDB_H */