2019-04-10 16:43:34 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
2021-06-03 10:51:19 +08:00
|
|
|
* Copyright 2019-2021 NXP
|
2019-04-10 16:43:34 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __L1028A_COMMON_H
|
|
|
|
#define __L1028A_COMMON_H
|
|
|
|
|
|
|
|
#include <asm/arch/stream_id_lsch3.h>
|
|
|
|
#include <asm/arch/config.h>
|
|
|
|
#include <asm/arch/soc.h>
|
|
|
|
|
|
|
|
/* Link Definitions */
|
|
|
|
|
2022-11-17 02:10:41 +08:00
|
|
|
#define CFG_SYS_DDR_SDRAM_BASE 0x80000000UL
|
2022-10-29 08:27:13 +08:00
|
|
|
#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
|
2022-11-17 02:10:41 +08:00
|
|
|
#define CFG_SYS_SDRAM_BASE CFG_SYS_DDR_SDRAM_BASE
|
|
|
|
#define CFG_SYS_DDR_BLOCK2_BASE 0x2080000000ULL
|
2019-04-10 16:43:34 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* SMP Definitinos
|
|
|
|
*/
|
2020-06-02 03:53:26 +08:00
|
|
|
#define CPU_RELEASE_ADDR secondary_boot_addr
|
2019-04-10 16:43:34 +08:00
|
|
|
|
2021-02-05 19:01:57 +08:00
|
|
|
/* GPIO */
|
|
|
|
|
2019-04-10 16:43:34 +08:00
|
|
|
/* I2C */
|
|
|
|
|
|
|
|
/* Serial Port */
|
2022-11-17 02:10:28 +08:00
|
|
|
#define CFG_SYS_NS16550_CLK (get_bus_freq(0) / 2)
|
2019-04-10 16:43:34 +08:00
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
|
|
|
|
/* Physical Memory Map */
|
|
|
|
|
|
|
|
#define HWCONFIG_BUFFER_SIZE 128
|
|
|
|
|
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(MMC, mmc, 0) \
|
2019-11-04 15:10:45 +08:00
|
|
|
func(MMC, mmc, 1) \
|
2020-03-10 11:31:05 +08:00
|
|
|
func(USB, usb, 0) \
|
|
|
|
func(DHCP, dhcp, na)
|
2019-04-10 16:43:34 +08:00
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
2019-11-04 15:10:45 +08:00
|
|
|
#define XSPI_NOR_BOOTCOMMAND \
|
|
|
|
"run xspi_hdploadcmd; run distro_bootcmd; run xspi_bootcmd; " \
|
|
|
|
"env exists secureboot && esbc_halt;;"
|
2019-04-10 16:43:34 +08:00
|
|
|
#define SD_BOOTCOMMAND \
|
2019-11-04 15:10:45 +08:00
|
|
|
"run sd_hdploadcmd; run distro_bootcmd;run sd_bootcmd; " \
|
|
|
|
"env exists secureboot && esbc_halt;"
|
|
|
|
#define SD2_BOOTCOMMAND \
|
|
|
|
"run emmc_hdploadcmd; run distro_bootcmd;run emmc_bootcmd; " \
|
2019-04-10 16:43:34 +08:00
|
|
|
"env exists secureboot && esbc_halt;"
|
|
|
|
|
|
|
|
#define OCRAM_NONSECURE_SIZE 0x00010000
|
2022-10-29 08:27:13 +08:00
|
|
|
#define CFG_SYS_FSL_QSPI_BASE 0x20000000
|
2019-04-10 16:43:34 +08:00
|
|
|
|
|
|
|
/* I2C bus multiplexer */
|
|
|
|
#define I2C_MUX_PCA_ADDR_PRI 0x77 /* Primary Mux*/
|
|
|
|
#define I2C_MUX_CH_DEFAULT 0x8
|
|
|
|
|
2019-11-18 13:26:09 +08:00
|
|
|
/* DisplayPort */
|
|
|
|
#define DP_PWD_EN_DEFAULT_MASK 0x8
|
|
|
|
|
2019-11-08 00:11:32 +08:00
|
|
|
#ifdef CONFIG_NXP_ESBC
|
2019-05-24 14:36:27 +08:00
|
|
|
#include <asm/fsl_secure_boot.h>
|
|
|
|
#endif
|
|
|
|
|
2019-04-10 16:43:34 +08:00
|
|
|
#endif /* __L1028A_COMMON_H */
|