Priyanka Jain | 58c3e62 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Meenakshi Aggarwal | 69b3894 | 2020-01-10 20:13:19 +0530 | [diff] [blame] | 3 | * Copyright 2018,2020 NXP |
Priyanka Jain | 58c3e62 | 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 | 58c3e62 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 11 | /* RTC */ |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 12 | #define CFG_SYS_RTC_BUS_NUM 4 |
Priyanka Jain | 58c3e62 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 13 | |
Florin Chiculita | c761028 | 2023-05-31 18:02:18 +0300 | [diff] [blame] | 14 | #if defined(CONFIG_FSL_MC_ENET) |
| 15 | #define AQR113C_PHY_ADDR1 0x0 |
| 16 | #define AQR113C_PHY_ADDR2 0x08 |
| 17 | #endif |
| 18 | |
Meenakshi Aggarwal | 938e35e | 2018-11-30 22:32:12 +0530 | [diff] [blame] | 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 | |
Priyanka Jain | 58c3e62 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 25 | /* Initial environment variables */ |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 26 | #define CFG_EXTRA_ENV_SETTINGS \ |
Priyanka Jain | 3e1a9b5 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 27 | EXTRA_ENV_SETTINGS \ |
Meenakshi Aggarwal | 69b3894 | 2020-01-10 20:13:19 +0530 | [diff] [blame] | 28 | "boot_scripts=lx2160ardb_boot.scr\0" \ |
| 29 | "boot_script_hdr=hdr_lx2160ardb_bs.out\0" \ |
Priyanka Jain | 3e1a9b5 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 30 | "BOARD=lx2160ardb\0" \ |
| 31 | "xspi_bootcmd=echo Trying load from flexspi..;" \ |
| 32 | "sf probe 0:0 && sf read $load_addr " \ |
| 33 | "$kernel_start $kernel_size ; env exists secureboot &&" \ |
| 34 | "sf read $kernelheader_addr_r $kernelheader_start " \ |
| 35 | "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\ |
| 36 | " bootm $load_addr#$BOARD\0" \ |
| 37 | "sd_bootcmd=echo Trying load from sd card..;" \ |
Meenakshi Aggarwal | e5f1111 | 2020-09-01 12:56:28 +0530 | [diff] [blame] | 38 | "mmc dev 0; mmcinfo; mmc read $load_addr " \ |
Priyanka Jain | 3e1a9b5 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 39 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 40 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 41 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 42 | " && esbc_validate ${kernelheader_addr_r};" \ |
Meenakshi Aggarwal | b7e7a46 | 2020-02-19 23:30:45 +0530 | [diff] [blame] | 43 | "bootm $load_addr#$BOARD\0" \ |
| 44 | "sd2_bootcmd=echo Trying load from emmc card..;" \ |
| 45 | "mmc dev 1; mmcinfo; mmc read $load_addr " \ |
| 46 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 47 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 48 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 49 | " && esbc_validate ${kernelheader_addr_r};" \ |
Priyanka Jain | 3e1a9b5 | 2019-01-24 05:22:18 +0000 | [diff] [blame] | 50 | "bootm $load_addr#$BOARD\0" |
Priyanka Jain | 58c3e62 | 2018-11-28 13:04:27 +0000 | [diff] [blame] | 51 | |
| 52 | #include <asm/fsl_secure_boot.h> |
| 53 | |
| 54 | #endif /* __LX2_RDB_H */ |