blob: cfff46ce339897425b6d9a854307cdb79a02a206 [file] [log] [blame]
Jan Kiszka8ff2ff82021-09-18 08:17:53 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Configuration header file for IOT2050
4 * Copyright (c) Siemens AG, 2018-2021
5 *
6 * Authors:
7 * Le Jin <le.jin@siemens.com>
8 * Jan Kiszka <jan.kiszka@siemens.com>
9 */
10
11#ifndef __CONFIG_IOT2050_H
12#define __CONFIG_IOT2050_H
13
14#include <linux/sizes.h>
15
16/* SPL Loader Configuration */
Jan Kiszka8ff2ff82021-09-18 08:17:53 +020017
Jan Kiszka8ff2ff82021-09-18 08:17:53 +020018/* U-Boot general configuration */
19#define EXTRA_ENV_IOT2050_BOARD_SETTINGS \
20 "usb_pgood_delay=900\0"
21
Simon Glass5ca5dd52023-02-05 15:36:46 -070022#if IS_ENABLED(CONFIG_CMD_USB)
Jan Kiszka8ff2ff82021-09-18 08:17:53 +020023# define BOOT_TARGET_USB(func) \
24 func(USB, usb, 0) \
25 func(USB, usb, 1) \
26 func(USB, usb, 2)
27#else
28# define BOOT_TARGET_USB(func)
29#endif
30
31/*
32 * This defines all MMC devices, even if the basic variant has no mmc1.
33 * The non-supported device will be removed from the boot targets during
34 * runtime, when that board was detected.
35 */
36#define BOOT_TARGET_DEVICES(func) \
37 func(MMC, mmc, 1) \
38 func(MMC, mmc, 0) \
39 BOOT_TARGET_USB(func)
40
41#include <config_distro_bootcmd.h>
42
Tom Rinic9edebe2022-12-04 10:03:50 -050043#define CFG_EXTRA_ENV_SETTINGS \
Jan Kiszka8ff2ff82021-09-18 08:17:53 +020044 DEFAULT_LINUX_BOOT_ENV \
45 BOOTENV \
46 EXTRA_ENV_IOT2050_BOARD_SETTINGS
47
48#include <configs/ti_armv7_common.h>
49
50#endif /* __CONFIG_IOT2050_H */