blob: 5b397e23d89e55ff0deed4457d087126a11d1b14 [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/* MAC/PHY configuration */
Pankaj Bansal338baa32019-02-08 10:29:58 +000012
Pankaj Bansal338baa32019-02-08 10:29:58 +000013/* Initial environment variables */
Tom Rinic9edebe2022-12-04 10:03:50 -050014#define CFG_EXTRA_ENV_SETTINGS \
Pankaj Bansal338baa32019-02-08 10:29:58 +000015 EXTRA_ENV_SETTINGS \
Meenakshi Aggarwal751f7a72020-01-10 20:13:19 +053016 "boot_scripts=lx2160aqds_boot.scr\0" \
17 "boot_script_hdr=hdr_lx2160aqds_bs.out\0" \
Pankaj Bansal338baa32019-02-08 10:29:58 +000018 "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 Aggarwala0569bd2020-09-01 12:56:28 +053026 "mmc dev 0; mmcinfo; mmc read $load_addr " \
Pankaj Bansal338baa32019-02-08 10:29:58 +000027 "$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 Aggarwalbebebab2020-02-19 23:30:45 +053031 "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 Bansal338baa32019-02-08 10:29:58 +000038 "bootm $load_addr#$BOARD\0"
39
40#include <asm/fsl_secure_boot.h>
41
42#endif /* __LX2_QDS_H */