blob: ebe5004f440929d0039cbfcc14eaffb9a1be4749 [file] [log] [blame]
Priyanka Jainfd45ca02018-11-28 13:04:27 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Meenakshi Aggarwal751f7a72020-01-10 20:13:19 +05303 * Copyright 2018,2020 NXP
Priyanka Jainfd45ca02018-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 Jainfd45ca02018-11-28 13:04:27 +000011/* VID */
Priyanka Jainfd45ca02018-11-28 13:04:27 +000012#define CONFIG_VID_FLS_ENV "lx2160ardb_vdd_mv"
13#define CONFIG_VID
Priyanka Jainfd45ca02018-11-28 13:04:27 +000014#define CONFIG_VOL_MONITOR_LTC3882_SET
15#define CONFIG_VOL_MONITOR_LTC3882_READ
16
17/* RTC */
18#define CONFIG_SYS_RTC_BUS_NUM 4
19
20/* MAC/PHY configuration */
21#if defined(CONFIG_FSL_MC_ENET)
22#define CONFIG_MII
23#define CONFIG_ETHPRIME "DPMAC1@xgmii"
Priyanka Jainfd45ca02018-11-28 13:04:27 +000024#endif
25
Meenakshi Aggarwal936a68d2018-11-30 22:32:12 +053026/* EMC2305 */
27#define I2C_MUX_CH_EMC2305 0x09
28#define I2C_EMC2305_ADDR 0x4D
29#define I2C_EMC2305_CMD 0x40
30#define I2C_EMC2305_PWM 0x80
31
Priyanka Jainfd45ca02018-11-28 13:04:27 +000032/* EEPROM */
Priyanka Jainfd45ca02018-11-28 13:04:27 +000033#define CONFIG_SYS_I2C_EEPROM_NXID
34#define CONFIG_SYS_EEPROM_BUS_NUM 0
Priyanka Jainfd45ca02018-11-28 13:04:27 +000035
36/* Initial environment variables */
37#define CONFIG_EXTRA_ENV_SETTINGS \
Priyanka Jain16744062019-01-24 05:22:18 +000038 EXTRA_ENV_SETTINGS \
Meenakshi Aggarwal751f7a72020-01-10 20:13:19 +053039 "boot_scripts=lx2160ardb_boot.scr\0" \
40 "boot_script_hdr=hdr_lx2160ardb_bs.out\0" \
Priyanka Jain16744062019-01-24 05:22:18 +000041 "BOARD=lx2160ardb\0" \
42 "xspi_bootcmd=echo Trying load from flexspi..;" \
43 "sf probe 0:0 && sf read $load_addr " \
44 "$kernel_start $kernel_size ; env exists secureboot &&" \
45 "sf read $kernelheader_addr_r $kernelheader_start " \
46 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
47 " bootm $load_addr#$BOARD\0" \
48 "sd_bootcmd=echo Trying load from sd card..;" \
Meenakshi Aggarwala0569bd2020-09-01 12:56:28 +053049 "mmc dev 0; mmcinfo; mmc read $load_addr " \
Priyanka Jain16744062019-01-24 05:22:18 +000050 "$kernel_addr_sd $kernel_size_sd ;" \
51 "env exists secureboot && mmc read $kernelheader_addr_r "\
52 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
53 " && esbc_validate ${kernelheader_addr_r};" \
Meenakshi Aggarwalbebebab2020-02-19 23:30:45 +053054 "bootm $load_addr#$BOARD\0" \
55 "sd2_bootcmd=echo Trying load from emmc card..;" \
56 "mmc dev 1; mmcinfo; mmc read $load_addr " \
57 "$kernel_addr_sd $kernel_size_sd ;" \
58 "env exists secureboot && mmc read $kernelheader_addr_r "\
59 "$kernelhdr_addr_sd $kernelhdr_size_sd " \
60 " && esbc_validate ${kernelheader_addr_r};" \
Priyanka Jain16744062019-01-24 05:22:18 +000061 "bootm $load_addr#$BOARD\0"
Priyanka Jainfd45ca02018-11-28 13:04:27 +000062
63#include <asm/fsl_secure_boot.h>
64
65#endif /* __LX2_RDB_H */