blob: 296bcd4c7b7b696ea585eefa0e3ffa2c372454eb [file] [log] [blame]
Jan Kiszkaa2db09e2021-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 Kiszkaa2db09e2021-09-18 08:17:53 +020017
Jan Kiszkaa2db09e2021-09-18 08:17:53 +020018#define CONFIG_SYS_BOOTM_LEN SZ_64M
19
20/* U-Boot general configuration */
21#define EXTRA_ENV_IOT2050_BOARD_SETTINGS \
22 "usb_pgood_delay=900\0"
23
24#ifndef CONFIG_SPL_BUILD
25
26#if CONFIG_IS_ENABLED(CMD_USB)
27# define BOOT_TARGET_USB(func) \
28 func(USB, usb, 0) \
29 func(USB, usb, 1) \
30 func(USB, usb, 2)
31#else
32# define BOOT_TARGET_USB(func)
33#endif
34
35/*
36 * This defines all MMC devices, even if the basic variant has no mmc1.
37 * The non-supported device will be removed from the boot targets during
38 * runtime, when that board was detected.
39 */
40#define BOOT_TARGET_DEVICES(func) \
41 func(MMC, mmc, 1) \
42 func(MMC, mmc, 0) \
43 BOOT_TARGET_USB(func)
44
45#include <config_distro_bootcmd.h>
46
47#endif
48
49#define CONFIG_EXTRA_ENV_SETTINGS \
50 DEFAULT_LINUX_BOOT_ENV \
51 BOOTENV \
52 EXTRA_ENV_IOT2050_BOARD_SETTINGS
53
54#include <configs/ti_armv7_common.h>
55
56#endif /* __CONFIG_IOT2050_H */