mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-15 22:36:58 +00:00
Due to new DDR size introduction, the current logic of determining the DDR size is not able to get the correct size. Instead, the DDR size is determined by the FSBL(SEBOOT) then passed to u-boot through the scratchpad info. The SEBoot version must be >= D/V01.04.01.02 to support this change. Also now for some variants, the DDR size may > 2GB, so borrow some code from the TI evm to iot2050 to support more than 2GB DDR. Signed-off-by: Baocheng Su <baocheng.su@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Configuration header file for IOT2050
|
|
* Copyright (c) Siemens AG, 2018-2021
|
|
*
|
|
* Authors:
|
|
* Le Jin <le.jin@siemens.com>
|
|
* Jan Kiszka <jan.kiszka@siemens.com>
|
|
*/
|
|
|
|
#ifndef __CONFIG_IOT2050_H
|
|
#define __CONFIG_IOT2050_H
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
#include <configs/ti_armv7_common.h>
|
|
|
|
/* allow up to 3 USB storage devices */
|
|
#ifdef CONFIG_CMD_USB
|
|
#undef BOOT_TARGET_USB
|
|
#define BOOT_TARGET_USB(func) \
|
|
func(USB, usb, 0) \
|
|
func(USB, usb, 1) \
|
|
func(USB, usb, 2)
|
|
#endif
|
|
|
|
/* DDR Configuration */
|
|
#define CFG_SYS_SDRAM_BASE1 0x880000000
|
|
|
|
/*
|
|
* This defines all MMC devices, even if the basic variant has no mmc1.
|
|
* The non-supported device will be removed from the boot targets during
|
|
* runtime, when that board was detected.
|
|
*/
|
|
#undef BOOT_TARGET_DEVICES
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
func(MMC, mmc, 1) \
|
|
func(MMC, mmc, 0) \
|
|
BOOT_TARGET_USB(func)
|
|
|
|
#ifdef CONFIG_ENV_WRITEABLE_LIST
|
|
#define CFG_ENV_FLAGS_LIST_STATIC \
|
|
"board_uuid:sw,board_name:sw,board_serial:sw,board_a5e:sw," \
|
|
"mlfb:sw,fw_version:sw,seboot_version:sw," \
|
|
"m2_manual_config:sw," \
|
|
"eth1addr:mw,eth2addr:mw,watchdog_timeout_ms:dw,boot_targets:sw"
|
|
#endif
|
|
|
|
#endif /* __CONFIG_IOT2050_H */
|