Environment callbacks can already be configured from Kconfig with CONFIG_ENV_CALLBACK_LIST_STATIC, but static environment flags still require board headers to define CFG_ENV_FLAGS_LIST_STATIC. Add CONFIG_ENV_FLAGS_LIST_STATIC and use it as the only board-provided static environment flags list. Convert the remaining default-config users from CFG_ENV_FLAGS_LIST_STATIC to defconfig settings and drop the legacy header macro from ENV_FLAGS_LIST_STATIC. Move the environment flags format documentation out of README and into the developer environment documentation. Include the format in the Kconfig help as well. This lets boards configure writeable-list policy and type validation from defconfig without adding a config header solely for env flags. This preserves the behavior of default configs. Header-only cases that were inactive in upstream defconfigs are not converted into defconfig entries: iot2050 can add its list when enabling ENV_WRITEABLE_LIST, and smegw01 can add mmcdev:dw support if the unlocked SYS_BOOT_LOCKED=n configuration is needed. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Reviewed-by: Walter Schweizer <walter.schweizer@siemens.com>
42 lines
961 B
C
42 lines
961 B
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)
|
|
|
|
#endif /* __CONFIG_IOT2050_H */
|