Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Meenakshi Aggarwal | b2a6ccd | 2021-08-26 16:09:24 +0530 | [diff] [blame] | 3 | * Copyright 2020-2021 NXP |
Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __LX2162_QDS_H |
| 7 | #define __LX2162_QDS_H |
| 8 | |
| 9 | #include "lx2160a_common.h" |
| 10 | |
| 11 | /* USB */ |
Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 12 | |
Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 13 | /* RTC */ |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 14 | #define CFG_SYS_RTC_BUS_NUM 0 |
Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 15 | |
Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 16 | /* Initial environment variables */ |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 17 | #define CFG_EXTRA_ENV_SETTINGS \ |
Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 18 | EXTRA_ENV_SETTINGS \ |
| 19 | "boot_scripts=lx2162aqds_boot.scr\0" \ |
| 20 | "boot_script_hdr=hdr_lx2162aqds_bs.out\0" \ |
| 21 | "BOARD=lx2162aqds\0" \ |
| 22 | "xspi_bootcmd=echo Trying load from flexspi..;" \ |
| 23 | "sf probe 0:0 && sf read $load_addr " \ |
| 24 | "$kernel_start $kernel_size ; env exists secureboot &&" \ |
| 25 | "sf read $kernelheader_addr_r $kernelheader_start " \ |
| 26 | "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\ |
| 27 | " bootm $load_addr#$BOARD\0" \ |
| 28 | "sd_bootcmd=echo Trying load from sd card..;" \ |
| 29 | "mmc dev 0; mmcinfo; mmc read $load_addr " \ |
| 30 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 31 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 32 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 33 | " && esbc_validate ${kernelheader_addr_r};" \ |
| 34 | "bootm $load_addr#$BOARD\0" \ |
Meenakshi Aggarwal | b2a6ccd | 2021-08-26 16:09:24 +0530 | [diff] [blame] | 35 | "sd2_bootcmd=echo Trying load from emmc card..;" \ |
Meenakshi Aggarwal | 9ed303d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 36 | "mmc dev 1; mmcinfo; mmc read $load_addr " \ |
| 37 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 38 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 39 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 40 | " && esbc_validate ${kernelheader_addr_r};" \ |
| 41 | "bootm $load_addr#$BOARD\0" |
| 42 | |
| 43 | #include <asm/fsl_secure_boot.h> |
| 44 | |
| 45 | #endif /* __LX2162_QDS_H */ |