Meenakshi Aggarwal | 8a03b0d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Meenakshi Aggarwal | 121c7db | 2021-08-26 16:09:24 +0530 | [diff] [blame] | 3 | * Copyright 2020-2021 NXP |
Meenakshi Aggarwal | 8a03b0d | 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 */ |
| 12 | #undef CONFIG_USB_MAX_CONTROLLER_COUNT |
| 13 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 |
| 14 | |
Meenakshi Aggarwal | 8a03b0d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 15 | /* RTC */ |
| 16 | #define CONFIG_SYS_RTC_BUS_NUM 0 |
| 17 | |
| 18 | /* |
| 19 | * MMC |
| 20 | */ |
| 21 | #ifdef CONFIG_MMC |
| 22 | #ifndef __ASSEMBLY__ |
| 23 | u8 qixis_esdhc_detect_quirk(void); |
| 24 | #endif |
| 25 | #define CONFIG_ESDHC_DETECT_QUIRK qixis_esdhc_detect_quirk() |
| 26 | #endif |
| 27 | |
Meenakshi Aggarwal | 8a03b0d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 28 | /* EEPROM */ |
Meenakshi Aggarwal | 8a03b0d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 29 | #define CONFIG_SYS_I2C_EEPROM_NXID |
| 30 | #define CONFIG_SYS_EEPROM_BUS_NUM 0 |
Meenakshi Aggarwal | 8a03b0d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 31 | |
| 32 | /* Initial environment variables */ |
| 33 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 34 | EXTRA_ENV_SETTINGS \ |
| 35 | "boot_scripts=lx2162aqds_boot.scr\0" \ |
| 36 | "boot_script_hdr=hdr_lx2162aqds_bs.out\0" \ |
| 37 | "BOARD=lx2162aqds\0" \ |
| 38 | "xspi_bootcmd=echo Trying load from flexspi..;" \ |
| 39 | "sf probe 0:0 && sf read $load_addr " \ |
| 40 | "$kernel_start $kernel_size ; env exists secureboot &&" \ |
| 41 | "sf read $kernelheader_addr_r $kernelheader_start " \ |
| 42 | "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\ |
| 43 | " bootm $load_addr#$BOARD\0" \ |
| 44 | "sd_bootcmd=echo Trying load from sd card..;" \ |
| 45 | "mmc dev 0; 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};" \ |
| 50 | "bootm $load_addr#$BOARD\0" \ |
Meenakshi Aggarwal | 121c7db | 2021-08-26 16:09:24 +0530 | [diff] [blame] | 51 | "sd2_bootcmd=echo Trying load from emmc card..;" \ |
Meenakshi Aggarwal | 8a03b0d | 2020-12-04 20:17:28 +0530 | [diff] [blame] | 52 | "mmc dev 1; mmcinfo; mmc read $load_addr " \ |
| 53 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 54 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 55 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 56 | " && esbc_validate ${kernelheader_addr_r};" \ |
| 57 | "bootm $load_addr#$BOARD\0" |
| 58 | |
| 59 | #include <asm/fsl_secure_boot.h> |
| 60 | |
| 61 | #endif /* __LX2162_QDS_H */ |