blob: 3a316e73308f30d928002d4d2dc5e24feb33fa02 [file] [log] [blame]
Pankaj Bansal1eba7232019-02-08 10:29:58 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Meenakshi Aggarwal69b38942020-01-10 20:13:19 +05303 * Copyright 2018-2020 NXP
Pankaj Bansal1eba7232019-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 Bansal1eba7232019-02-08 10:29:58 +000011/* RTC */
Tom Rini65cc0e22022-11-16 13:10:41 -050012#define CFG_SYS_RTC_BUS_NUM 0
Pankaj Bansal1eba7232019-02-08 10:29:58 +000013
Pankaj Bansal1eba7232019-02-08 10:29:58 +000014/* MAC/PHY configuration */
Pankaj Bansal1eba7232019-02-08 10:29:58 +000015
Pankaj Bansal1eba7232019-02-08 10:29:58 +000016/* Initial environment variables */
Tom Rini0613c362022-12-04 10:03:50 -050017#define CFG_EXTRA_ENV_SETTINGS \
Pankaj Bansal1eba7232019-02-08 10:29:58 +000018 EXTRA_ENV_SETTINGS \
Meenakshi Aggarwal69b38942020-01-10 20:13:19 +053019 "boot_scripts=lx2160aqds_boot.scr\0" \
20 "boot_script_hdr=hdr_lx2160aqds_bs.out\0" \
Pankaj Bansal1eba7232019-02-08 10:29:58 +000021 "BOARD=lx2160aqds\0" \
22 "xspi_bootcmd=echo Trying load from flexspi..;" \
23 "sf probe 0:0 && sf read $load_addr " \
24 "$kernel_start $kernel_size ; env exists secureboot &&" \
25 "sf read $kernelheader_addr_r $kernelheader_start " \
26 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
27 " bootm $load_addr#$BOARD\0" \
28 "sd_bootcmd=echo Trying load from sd card..;" \
Meenakshi Aggarwale5f11112020-09-01 12:56:28 +053029 "mmc dev 0; mmcinfo; mmc read $load_addr " \
Pankaj Bansal1eba7232019-02-08 10:29:58 +000030 "$kernel_addr_sd $kernel_size_sd ;" \
31 "env exists secureboot && mmc read $kernelheader_addr_r "\
32 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
33 " && esbc_validate ${kernelheader_addr_r};" \
Meenakshi Aggarwalb7e7a462020-02-19 23:30:45 +053034 "bootm $load_addr#$BOARD\0" \
35 "sd2_bootcmd=echo Trying load from emmc card..;" \
36 "mmc dev 1; mmcinfo; mmc read $load_addr " \
37 "$kernel_addr_sd $kernel_size_sd ;" \
38 "env exists secureboot && mmc read $kernelheader_addr_r "\
39 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
40 " && esbc_validate ${kernelheader_addr_r};" \
Pankaj Bansal1eba7232019-02-08 10:29:58 +000041 "bootm $load_addr#$BOARD\0"
42
43#include <asm/fsl_secure_boot.h>
44
45#endif /* __LX2_QDS_H */