Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +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 |
Pankaj Bansal | 1eba723 | 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 | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 11 | /* VID */ |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 12 | #define CONFIG_VID_FLS_ENV "lx2160aqds_vdd_mv" |
| 13 | #define CONFIG_VID |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +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 0 |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 19 | |
| 20 | /* |
| 21 | * MMC |
| 22 | */ |
| 23 | #ifdef CONFIG_MMC |
| 24 | #ifndef __ASSEMBLY__ |
| 25 | u8 qixis_esdhc_detect_quirk(void); |
| 26 | #endif |
| 27 | #define CONFIG_ESDHC_DETECT_QUIRK qixis_esdhc_detect_quirk() |
| 28 | #endif |
| 29 | |
| 30 | /* MAC/PHY configuration */ |
| 31 | #if defined(CONFIG_FSL_MC_ENET) |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 32 | #define CONFIG_ETHPRIME "DPMAC17@rgmii-id" |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 33 | #endif |
| 34 | |
| 35 | /* EEPROM */ |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 36 | #define CONFIG_SYS_I2C_EEPROM_NXID |
| 37 | #define CONFIG_SYS_EEPROM_BUS_NUM 0 |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 38 | |
| 39 | /* Initial environment variables */ |
| 40 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 41 | EXTRA_ENV_SETTINGS \ |
Meenakshi Aggarwal | 69b3894 | 2020-01-10 20:13:19 +0530 | [diff] [blame] | 42 | "boot_scripts=lx2160aqds_boot.scr\0" \ |
| 43 | "boot_script_hdr=hdr_lx2160aqds_bs.out\0" \ |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 44 | "BOARD=lx2160aqds\0" \ |
| 45 | "xspi_bootcmd=echo Trying load from flexspi..;" \ |
| 46 | "sf probe 0:0 && sf read $load_addr " \ |
| 47 | "$kernel_start $kernel_size ; env exists secureboot &&" \ |
| 48 | "sf read $kernelheader_addr_r $kernelheader_start " \ |
| 49 | "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\ |
| 50 | " bootm $load_addr#$BOARD\0" \ |
| 51 | "sd_bootcmd=echo Trying load from sd card..;" \ |
Meenakshi Aggarwal | e5f1111 | 2020-09-01 12:56:28 +0530 | [diff] [blame] | 52 | "mmc dev 0; mmcinfo; mmc read $load_addr " \ |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 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};" \ |
Meenakshi Aggarwal | b7e7a46 | 2020-02-19 23:30:45 +0530 | [diff] [blame] | 57 | "bootm $load_addr#$BOARD\0" \ |
| 58 | "sd2_bootcmd=echo Trying load from emmc card..;" \ |
| 59 | "mmc dev 1; mmcinfo; mmc read $load_addr " \ |
| 60 | "$kernel_addr_sd $kernel_size_sd ;" \ |
| 61 | "env exists secureboot && mmc read $kernelheader_addr_r "\ |
| 62 | "$kernelhdr_addr_sd $kernelhdr_size_sd " \ |
| 63 | " && esbc_validate ${kernelheader_addr_r};" \ |
Pankaj Bansal | 1eba723 | 2019-02-08 10:29:58 +0000 | [diff] [blame] | 64 | "bootm $load_addr#$BOARD\0" |
| 65 | |
| 66 | #include <asm/fsl_secure_boot.h> |
| 67 | |
| 68 | #endif /* __LX2_QDS_H */ |