blob: 58c0ff36571e95806e84ef4e9c3ff25b67a82bce [file] [log] [blame]
Priyanka Jain58c3e622018-11-28 13:04:27 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Meenakshi Aggarwal69b38942020-01-10 20:13:19 +05303 * Copyright 2018,2020 NXP
Priyanka Jain58c3e622018-11-28 13:04:27 +00004 */
5
6#ifndef __LX2_RDB_H
7#define __LX2_RDB_H
8
9#include "lx2160a_common.h"
10
Priyanka Jain58c3e622018-11-28 13:04:27 +000011/* RTC */
Tom Rini65cc0e22022-11-16 13:10:41 -050012#define CFG_SYS_RTC_BUS_NUM 4
Priyanka Jain58c3e622018-11-28 13:04:27 +000013
Meenakshi Aggarwal938e35e2018-11-30 22:32:12 +053014/* EMC2305 */
15#define I2C_MUX_CH_EMC2305 0x09
16#define I2C_EMC2305_ADDR 0x4D
17#define I2C_EMC2305_CMD 0x40
18#define I2C_EMC2305_PWM 0x80
19
Priyanka Jain58c3e622018-11-28 13:04:27 +000020/* Initial environment variables */
21#define CONFIG_EXTRA_ENV_SETTINGS \
Priyanka Jain3e1a9b52019-01-24 05:22:18 +000022 EXTRA_ENV_SETTINGS \
Meenakshi Aggarwal69b38942020-01-10 20:13:19 +053023 "boot_scripts=lx2160ardb_boot.scr\0" \
24 "boot_script_hdr=hdr_lx2160ardb_bs.out\0" \
Priyanka Jain3e1a9b52019-01-24 05:22:18 +000025 "BOARD=lx2160ardb\0" \
26 "xspi_bootcmd=echo Trying load from flexspi..;" \
27 "sf probe 0:0 && sf read $load_addr " \
28 "$kernel_start $kernel_size ; env exists secureboot &&" \
29 "sf read $kernelheader_addr_r $kernelheader_start " \
30 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
31 " bootm $load_addr#$BOARD\0" \
32 "sd_bootcmd=echo Trying load from sd card..;" \
Meenakshi Aggarwale5f11112020-09-01 12:56:28 +053033 "mmc dev 0; mmcinfo; mmc read $load_addr " \
Priyanka Jain3e1a9b52019-01-24 05:22:18 +000034 "$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};" \
Meenakshi Aggarwalb7e7a462020-02-19 23:30:45 +053038 "bootm $load_addr#$BOARD\0" \
39 "sd2_bootcmd=echo Trying load from emmc card..;" \
40 "mmc dev 1; mmcinfo; mmc read $load_addr " \
41 "$kernel_addr_sd $kernel_size_sd ;" \
42 "env exists secureboot && mmc read $kernelheader_addr_r "\
43 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
44 " && esbc_validate ${kernelheader_addr_r};" \
Priyanka Jain3e1a9b52019-01-24 05:22:18 +000045 "bootm $load_addr#$BOARD\0"
Priyanka Jain58c3e622018-11-28 13:04:27 +000046
47#include <asm/fsl_secure_boot.h>
48
49#endif /* __LX2_RDB_H */