Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +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 |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __LX2_QDS_H |
| 7 | #define __LX2_QDS_H |
| 8 | |
| 9 | #include "lx2160a_common.h" |
| 10 | |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 11 | /* MAC/PHY configuration */ |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 12 | |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 13 | /* Initial environment variables */ |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 14 | #define CFG_EXTRA_ENV_SETTINGS \ |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 15 | EXTRA_ENV_SETTINGS \ |
Meenakshi Aggarwal | 751f7a7 | 2020-01-10 20:13:19 +0530 | [diff] [blame] | 16 | "boot_scripts=lx2160aqds_boot.scr\0" \ |
| 17 | "boot_script_hdr=hdr_lx2160aqds_bs.out\0" \ |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 18 | "BOARD=lx2160aqds\0" \ |
| 19 | "xspi_bootcmd=echo Trying load from flexspi..;" \ |
| 20 | "sf probe 0:0 && sf read $load_addr " \ |
| 21 | "$kernel_start $kernel_size ; env exists secureboot &&" \ |
| 22 | "sf read $kernelheader_addr_r $kernelheader_start " \ |
| 23 | "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\ |
| 24 | " bootm $load_addr#$BOARD\0" \ |
| 25 | "sd_bootcmd=echo Trying load from sd card..;" \ |
Meenakshi Aggarwal | a0569bd | 2020-09-01 12:56:28 +0530 | [diff] [blame] | 26 | "mmc dev 0; mmcinfo; mmc read $load_addr " \ |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 27 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 28 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 29 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 30 | " && esbc_validate ${kernelheader_addr_r};" \ |
Meenakshi Aggarwal | bebebab | 2020-02-19 23:30:45 +0530 | [diff] [blame] | 31 | "bootm $load_addr#$BOARD\0" \ |
| 32 | "sd2_bootcmd=echo Trying load from emmc card..;" \ |
| 33 | "mmc dev 1; mmcinfo; mmc read $load_addr " \ |
| 34 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 35 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 36 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 37 | " && esbc_validate ${kernelheader_addr_r};" \ |
Pankaj Bansal | 338baa3 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 38 | "bootm $load_addr#$BOARD\0" |
| 39 | |
| 40 | #include <asm/fsl_secure_boot.h> |
| 41 | |
| 42 | #endif /* __LX2_QDS_H */ |