mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
eaf6ea6a1d
- Make all users of CUSTOM_SYS_INIT_SP_ADDR reference SYS_INIT_SP_ADDR - Introduce HAS_CUSTOM_SYS_INIT_SP_ADDR to allow for setting the stack pointer directly, otherwise we use the common calculation. - On some platforms that were using the standard calculation but did not set CONFIG_SYS_INIT_RAM_SIZE / CONFIG_SYS_INIT_RAM_ADDR, set them. - On a small number of platforms that were not subtracting GENERATED_GBL_DATA_SIZE do so now via the standard calculation. - CONFIG_SYS_INIT_SP_OFFSET is now widely unused, so remove it from most board config header files. Signed-off-by: Tom Rini <trini@konsulko.com>
56 lines
1.2 KiB
C
56 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>
|
|
|
|
/* SPL Loader Configuration */
|
|
|
|
#define CONFIG_SYS_BOOTM_LEN SZ_64M
|
|
|
|
/* U-Boot general configuration */
|
|
#define EXTRA_ENV_IOT2050_BOARD_SETTINGS \
|
|
"usb_pgood_delay=900\0"
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
|
|
|
#if CONFIG_IS_ENABLED(CMD_USB)
|
|
# define BOOT_TARGET_USB(func) \
|
|
func(USB, usb, 0) \
|
|
func(USB, usb, 1) \
|
|
func(USB, usb, 2)
|
|
#else
|
|
# define BOOT_TARGET_USB(func)
|
|
#endif
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
func(MMC, mmc, 1) \
|
|
func(MMC, mmc, 0) \
|
|
BOOT_TARGET_USB(func)
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
#endif
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
DEFAULT_LINUX_BOOT_ENV \
|
|
BOOTENV \
|
|
EXTRA_ENV_IOT2050_BOARD_SETTINGS
|
|
|
|
#include <configs/ti_armv7_common.h>
|
|
|
|
#endif /* __CONFIG_IOT2050_H */
|