Convert CONFIG_SPL_TARGET to Kconfig
[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 /* EMC2305 */
15 #define I2C_MUX_CH_EMC2305              0x09
16 #define I2C_EMC2305_ADDR                0x4D
17 #define I2C_EMC2305_CMD         0x40
18 #define I2C_EMC2305_PWM         0x80
19
20 /* EEPROM */
21 #define CONFIG_SYS_I2C_EEPROM_NXID
22 #define CONFIG_SYS_EEPROM_BUS_NUM                  0
23
24 /* Initial environment variables */
25 #define CONFIG_EXTRA_ENV_SETTINGS               \
26         EXTRA_ENV_SETTINGS                      \
27         "boot_scripts=lx2160ardb_boot.scr\0"    \
28         "boot_script_hdr=hdr_lx2160ardb_bs.out\0"       \
29         "BOARD=lx2160ardb\0"                    \
30         "xspi_bootcmd=echo Trying load from flexspi..;"         \
31                 "sf probe 0:0 && sf read $load_addr "           \
32                 "$kernel_start $kernel_size ; env exists secureboot &&" \
33                 "sf read $kernelheader_addr_r $kernelheader_start "     \
34                 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
35                 " bootm $load_addr#$BOARD\0"                    \
36         "sd_bootcmd=echo Trying load from sd card..;"           \
37                 "mmc dev 0; mmcinfo; mmc read $load_addr "                      \
38                 "$kernel_addr_sd $kernel_size_sd ;"             \
39                 "env exists secureboot && mmc read $kernelheader_addr_r "\
40                 "$kernelhdr_addr_sd $kernelhdr_size_sd "        \
41                 " && esbc_validate ${kernelheader_addr_r};"     \
42                 "bootm $load_addr#$BOARD\0"                     \
43         "sd2_bootcmd=echo Trying load from emmc card..;"        \
44                 "mmc dev 1; mmcinfo; mmc read $load_addr "      \
45                 "$kernel_addr_sd $kernel_size_sd ;"             \
46                 "env exists secureboot && mmc read $kernelheader_addr_r "\
47                 "$kernelhdr_addr_sd $kernelhdr_size_sd "        \
48                 " && esbc_validate ${kernelheader_addr_r};"     \
49                 "bootm $load_addr#$BOARD\0"
50
51 #include <asm/fsl_secure_boot.h>
52
53 #endif /* __LX2_RDB_H */