2021-09-18 06:17:53 +00:00
|
|
|
/* 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>
|
|
|
|
|
2023-02-05 22:36:46 +00:00
|
|
|
#if IS_ENABLED(CONFIG_CMD_USB)
|
2021-09-18 06:17:53 +00:00
|
|
|
# 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>
|
|
|
|
|
2023-02-28 18:19:12 +00:00
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2021-09-18 06:17:53 +00:00
|
|
|
DEFAULT_LINUX_BOOT_ENV \
|
2023-02-28 18:19:12 +00:00
|
|
|
BOOTENV
|
2021-09-18 06:17:53 +00:00
|
|
|
|
|
|
|
#include <configs/ti_armv7_common.h>
|
|
|
|
|
2023-02-28 18:19:14 +00:00
|
|
|
#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," \
|
2023-02-28 18:19:23 +00:00
|
|
|
"m2_manuel_config:sw," \
|
2023-02-28 18:19:14 +00:00
|
|
|
"eth1addr:mw,eth2addr:mw,watchdog_timeout_ms:dw,boot_targets:sw"
|
|
|
|
#endif
|
|
|
|
|
2021-09-18 06:17:53 +00:00
|
|
|
#endif /* __CONFIG_IOT2050_H */
|