blob: a07ebeb7233cc3283264b235491d976f2f332e28 [file] [log] [blame]
Pankaj Bansal338baa32019-02-08 10:29:58 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Meenakshi Aggarwal751f7a72020-01-10 20:13:19 +05303 * Copyright 2018-2020 NXP
Pankaj Bansal338baa32019-02-08 10:29:58 +00004 */
5
6#ifndef __LX2_QDS_H
7#define __LX2_QDS_H
8
9#include "lx2160a_common.h"
10
Pankaj Bansal338baa32019-02-08 10:29:58 +000011/* RTC */
12#define CONFIG_SYS_RTC_BUS_NUM 0
Pankaj Bansal338baa32019-02-08 10:29:58 +000013
14/*
15 * MMC
16 */
17#ifdef CONFIG_MMC
18#ifndef __ASSEMBLY__
19u8 qixis_esdhc_detect_quirk(void);
20#endif
21#define CONFIG_ESDHC_DETECT_QUIRK qixis_esdhc_detect_quirk()
22#endif
23
24/* MAC/PHY configuration */
25#if defined(CONFIG_FSL_MC_ENET)
Pankaj Bansal338baa32019-02-08 10:29:58 +000026#define CONFIG_ETHPRIME "DPMAC17@rgmii-id"
Pankaj Bansal338baa32019-02-08 10:29:58 +000027#endif
28
29/* EEPROM */
Pankaj Bansal338baa32019-02-08 10:29:58 +000030#define CONFIG_SYS_I2C_EEPROM_NXID
31#define CONFIG_SYS_EEPROM_BUS_NUM 0
Pankaj Bansal338baa32019-02-08 10:29:58 +000032
33/* Initial environment variables */
34#define CONFIG_EXTRA_ENV_SETTINGS \
35 EXTRA_ENV_SETTINGS \
Meenakshi Aggarwal751f7a72020-01-10 20:13:19 +053036 "boot_scripts=lx2160aqds_boot.scr\0" \
37 "boot_script_hdr=hdr_lx2160aqds_bs.out\0" \
Pankaj Bansal338baa32019-02-08 10:29:58 +000038 "BOARD=lx2160aqds\0" \
39 "xspi_bootcmd=echo Trying load from flexspi..;" \
40 "sf probe 0:0 && sf read $load_addr " \
41 "$kernel_start $kernel_size ; env exists secureboot &&" \
42 "sf read $kernelheader_addr_r $kernelheader_start " \
43 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
44 " bootm $load_addr#$BOARD\0" \
45 "sd_bootcmd=echo Trying load from sd card..;" \
Meenakshi Aggarwala0569bd2020-09-01 12:56:28 +053046 "mmc dev 0; mmcinfo; mmc read $load_addr " \
Pankaj Bansal338baa32019-02-08 10:29:58 +000047 "$kernel_addr_sd $kernel_size_sd ;" \
48 "env exists secureboot && mmc read $kernelheader_addr_r "\
49 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
50 " && esbc_validate ${kernelheader_addr_r};" \
Meenakshi Aggarwalbebebab2020-02-19 23:30:45 +053051 "bootm $load_addr#$BOARD\0" \
52 "sd2_bootcmd=echo Trying load from emmc card..;" \
53 "mmc dev 1; mmcinfo; mmc read $load_addr " \
54 "$kernel_addr_sd $kernel_size_sd ;" \
55 "env exists secureboot && mmc read $kernelheader_addr_r "\
56 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
57 " && esbc_validate ${kernelheader_addr_r};" \
Pankaj Bansal338baa32019-02-08 10:29:58 +000058 "bootm $load_addr#$BOARD\0"
59
60#include <asm/fsl_secure_boot.h>
61
62#endif /* __LX2_QDS_H */