Jan Kiszka | a2db09e | 2021-09-18 08:17:53 +0200 | [diff] [blame] | 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 | |
Simon Glass | 93bb62a | 2023-02-05 15:36:46 -0700 | [diff] [blame] | 16 | #if IS_ENABLED(CONFIG_CMD_USB) |
Jan Kiszka | a2db09e | 2021-09-18 08:17:53 +0200 | [diff] [blame] | 17 | # define BOOT_TARGET_USB(func) \ |
| 18 | func(USB, usb, 0) \ |
| 19 | func(USB, usb, 1) \ |
| 20 | func(USB, usb, 2) |
| 21 | #else |
| 22 | # define BOOT_TARGET_USB(func) |
| 23 | #endif |
| 24 | |
| 25 | /* |
| 26 | * This defines all MMC devices, even if the basic variant has no mmc1. |
| 27 | * The non-supported device will be removed from the boot targets during |
| 28 | * runtime, when that board was detected. |
| 29 | */ |
| 30 | #define BOOT_TARGET_DEVICES(func) \ |
| 31 | func(MMC, mmc, 1) \ |
| 32 | func(MMC, mmc, 0) \ |
| 33 | BOOT_TARGET_USB(func) |
| 34 | |
| 35 | #include <config_distro_bootcmd.h> |
| 36 | |
Jan Kiszka | d5436aa | 2023-02-28 19:19:12 +0100 | [diff] [blame^] | 37 | #define CFG_EXTRA_ENV_SETTINGS \ |
Jan Kiszka | a2db09e | 2021-09-18 08:17:53 +0200 | [diff] [blame] | 38 | DEFAULT_LINUX_BOOT_ENV \ |
Jan Kiszka | d5436aa | 2023-02-28 19:19:12 +0100 | [diff] [blame^] | 39 | BOOTENV |
Jan Kiszka | a2db09e | 2021-09-18 08:17:53 +0200 | [diff] [blame] | 40 | |
| 41 | #include <configs/ti_armv7_common.h> |
| 42 | |
| 43 | #endif /* __CONFIG_IOT2050_H */ |