2018-11-28 13:04:27 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
2020-01-10 14:43:19 +00:00
|
|
|
* Copyright 2018,2020 NXP
|
2018-11-28 13:04:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LX2_RDB_H
|
|
|
|
#define __LX2_RDB_H
|
|
|
|
|
|
|
|
#include "lx2160a_common.h"
|
|
|
|
|
|
|
|
/* RTC */
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_RTC_BUS_NUM 4
|
2018-11-28 13:04:27 +00:00
|
|
|
|
2023-05-31 15:02:18 +00:00
|
|
|
#if defined(CONFIG_FSL_MC_ENET)
|
|
|
|
#define AQR113C_PHY_ADDR1 0x0
|
|
|
|
#define AQR113C_PHY_ADDR2 0x08
|
|
|
|
#endif
|
|
|
|
|
2018-11-30 17:02:12 +00:00
|
|
|
/* EMC2305 */
|
|
|
|
#define I2C_MUX_CH_EMC2305 0x09
|
|
|
|
#define I2C_EMC2305_ADDR 0x4D
|
|
|
|
#define I2C_EMC2305_CMD 0x40
|
|
|
|
#define I2C_EMC2305_PWM 0x80
|
|
|
|
|
2018-11-28 13:04:27 +00:00
|
|
|
/* Initial environment variables */
|
2022-12-04 15:03:50 +00:00
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2019-01-24 05:22:18 +00:00
|
|
|
EXTRA_ENV_SETTINGS \
|
2020-01-10 14:43:19 +00:00
|
|
|
"boot_scripts=lx2160ardb_boot.scr\0" \
|
|
|
|
"boot_script_hdr=hdr_lx2160ardb_bs.out\0" \
|
2019-01-24 05:22:18 +00:00
|
|
|
"BOARD=lx2160ardb\0" \
|
|
|
|
"xspi_bootcmd=echo Trying load from flexspi..;" \
|
|
|
|
"sf probe 0:0 && sf read $load_addr " \
|
|
|
|
"$kernel_start $kernel_size ; env exists secureboot &&" \
|
|
|
|
"sf read $kernelheader_addr_r $kernelheader_start " \
|
|
|
|
"$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
|
|
|
|
" bootm $load_addr#$BOARD\0" \
|
|
|
|
"sd_bootcmd=echo Trying load from sd card..;" \
|
2020-09-01 07:26:28 +00:00
|
|
|
"mmc dev 0; mmcinfo; mmc read $load_addr " \
|
2019-01-24 05:22:18 +00:00
|
|
|
"$kernel_addr_sd $kernel_size_sd ;" \
|
|
|
|
"env exists secureboot && mmc read $kernelheader_addr_r "\
|
|
|
|
"$kernelhdr_addr_sd $kernelhdr_size_sd " \
|
|
|
|
" && esbc_validate ${kernelheader_addr_r};" \
|
2020-02-19 18:00:45 +00:00
|
|
|
"bootm $load_addr#$BOARD\0" \
|
|
|
|
"sd2_bootcmd=echo Trying load from emmc card..;" \
|
|
|
|
"mmc dev 1; mmcinfo; mmc read $load_addr " \
|
|
|
|
"$kernel_addr_sd $kernel_size_sd ;" \
|
|
|
|
"env exists secureboot && mmc read $kernelheader_addr_r "\
|
|
|
|
"$kernelhdr_addr_sd $kernelhdr_size_sd " \
|
|
|
|
" && esbc_validate ${kernelheader_addr_r};" \
|
2019-01-24 05:22:18 +00:00
|
|
|
"bootm $load_addr#$BOARD\0"
|
2018-11-28 13:04:27 +00:00
|
|
|
|
|
|
|
#include <asm/fsl_secure_boot.h>
|
|
|
|
|
|
|
|
#endif /* __LX2_RDB_H */
|