2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-06-03 13:11:34 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2016 Freescale Semiconductor
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LS1012A_COMMON_H
|
|
|
|
#define __LS1012A_COMMON_H
|
|
|
|
|
|
|
|
#include <asm/arch/config.h>
|
2017-03-22 06:36:29 +00:00
|
|
|
#include <asm/arch/stream_id_lsch2.h>
|
2020-06-25 07:26:22 +00:00
|
|
|
#include <linux/sizes.h>
|
2016-06-03 13:11:34 +00:00
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_DDR_SDRAM_BASE 0x80000000
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE CFG_SYS_DDR_SDRAM_BASE
|
|
|
|
#define CFG_SYS_DDR_BLOCK2_BASE 0x880000000ULL
|
2016-06-03 13:11:34 +00:00
|
|
|
|
2020-05-28 06:12:53 +00:00
|
|
|
/*SPI device */
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CFG_SYS_FSL_QSPI_BASE 0x40000000
|
2016-06-03 13:11:34 +00:00
|
|
|
|
|
|
|
/* I2C */
|
|
|
|
|
2021-02-05 11:01:55 +00:00
|
|
|
/* GPIO */
|
|
|
|
|
2022-11-16 18:10:28 +00:00
|
|
|
#define CFG_SYS_NS16550_CLK (get_serial_clock())
|
2016-06-03 13:11:34 +00:00
|
|
|
|
|
|
|
#define HWCONFIG_BUFFER_SIZE 128
|
|
|
|
|
2017-11-30 11:14:38 +00:00
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(MMC, mmc, 0) \
|
2019-02-19 06:44:04 +00:00
|
|
|
func(USB, usb, 0) \
|
|
|
|
func(SCSI, scsi, 0) \
|
|
|
|
func(DHCP, dhcp, na)
|
2017-11-30 11:14:38 +00:00
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
2016-06-03 13:11:34 +00:00
|
|
|
/* Initial environment variables */
|
2022-12-04 15:03:50 +00:00
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2016-06-03 13:11:34 +00:00
|
|
|
"verify=no\0" \
|
|
|
|
"loadaddr=0x80100000\0" \
|
|
|
|
"kernel_addr=0x100000\0" \
|
|
|
|
"initrd_high=0xffffffffffffffff\0" \
|
2017-11-13 23:35:10 +00:00
|
|
|
"kernel_start=0x1000000\0" \
|
2016-06-03 13:11:34 +00:00
|
|
|
"kernel_load=0xa0000000\0" \
|
|
|
|
"kernel_size=0x2800000\0" \
|
2020-06-08 13:25:44 +00:00
|
|
|
"bootm_size=0x10000000\0" \
|
2016-06-03 13:11:34 +00:00
|
|
|
|
2018-11-05 18:02:53 +00:00
|
|
|
#ifdef CONFIG_TFABOOT
|
2021-04-14 10:33:58 +00:00
|
|
|
#define QSPI_NOR_BOOTCOMMAND "sf probe 0:0; sf read $kernel_load "\
|
2018-11-05 18:02:53 +00:00
|
|
|
"$kernel_start $kernel_size && "\
|
|
|
|
"bootm $kernel_load"
|
|
|
|
#endif
|
2016-06-03 13:11:34 +00:00
|
|
|
|
2017-05-17 14:23:10 +00:00
|
|
|
#include <asm/arch/soc.h>
|
|
|
|
|
2016-06-03 13:11:34 +00:00
|
|
|
#endif /* __LS1012A_COMMON_H */
|