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