Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Meenakshi Aggarwal | 751f7a7 | 2020-01-10 20:13:19 +0530 | [diff] [blame] | 3 | * Copyright 2018,2020 NXP |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __LX2_RDB_H |
| 7 | #define __LX2_RDB_H |
| 8 | |
| 9 | #include "lx2160a_common.h" |
| 10 | |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 11 | /* VID */ |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 12 | #define CONFIG_VID_FLS_ENV "lx2160ardb_vdd_mv" |
| 13 | #define CONFIG_VID |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 14 | #define CONFIG_VOL_MONITOR_LTC3882_SET |
| 15 | #define CONFIG_VOL_MONITOR_LTC3882_READ |
| 16 | |
| 17 | /* RTC */ |
| 18 | #define CONFIG_SYS_RTC_BUS_NUM 4 |
| 19 | |
| 20 | /* MAC/PHY configuration */ |
| 21 | #if defined(CONFIG_FSL_MC_ENET) |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 22 | #define CONFIG_ETHPRIME "DPMAC1@xgmii" |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 23 | #endif |
| 24 | |
Meenakshi Aggarwal | 936a68d | 2018-11-30 22:32:12 +0530 | [diff] [blame] | 25 | /* EMC2305 */ |
| 26 | #define I2C_MUX_CH_EMC2305 0x09 |
| 27 | #define I2C_EMC2305_ADDR 0x4D |
| 28 | #define I2C_EMC2305_CMD 0x40 |
| 29 | #define I2C_EMC2305_PWM 0x80 |
| 30 | |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 31 | /* EEPROM */ |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 32 | #define CONFIG_SYS_I2C_EEPROM_NXID |
| 33 | #define CONFIG_SYS_EEPROM_BUS_NUM 0 |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 34 | |
| 35 | /* Initial environment variables */ |
| 36 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Priyanka Jain | 1674406 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 37 | EXTRA_ENV_SETTINGS \ |
Meenakshi Aggarwal | 751f7a7 | 2020-01-10 20:13:19 +0530 | [diff] [blame] | 38 | "boot_scripts=lx2160ardb_boot.scr\0" \ |
| 39 | "boot_script_hdr=hdr_lx2160ardb_bs.out\0" \ |
Priyanka Jain | 1674406 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 40 | "BOARD=lx2160ardb\0" \ |
| 41 | "xspi_bootcmd=echo Trying load from flexspi..;" \ |
| 42 | "sf probe 0:0 && sf read $load_addr " \ |
| 43 | "$kernel_start $kernel_size ; env exists secureboot &&" \ |
| 44 | "sf read $kernelheader_addr_r $kernelheader_start " \ |
| 45 | "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\ |
| 46 | " bootm $load_addr#$BOARD\0" \ |
| 47 | "sd_bootcmd=echo Trying load from sd card..;" \ |
Meenakshi Aggarwal | a0569bd | 2020-09-01 12:56:28 +0530 | [diff] [blame] | 48 | "mmc dev 0; mmcinfo; mmc read $load_addr " \ |
Priyanka Jain | 1674406 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 49 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 50 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 51 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 52 | " && esbc_validate ${kernelheader_addr_r};" \ |
Meenakshi Aggarwal | bebebab | 2020-02-19 23:30:45 +0530 | [diff] [blame] | 53 | "bootm $load_addr#$BOARD\0" \ |
| 54 | "sd2_bootcmd=echo Trying load from emmc card..;" \ |
| 55 | "mmc dev 1; mmcinfo; mmc read $load_addr " \ |
| 56 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 57 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 58 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 59 | " && esbc_validate ${kernelheader_addr_r};" \ |
Priyanka Jain | 1674406 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 60 | "bootm $load_addr#$BOARD\0" |
Priyanka Jain | fd45ca0 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 61 | |
| 62 | #include <asm/fsl_secure_boot.h> |
| 63 | |
| 64 | #endif /* __LX2_RDB_H */ |