blob: 5c58c7bbaab45e20616ad4b670dfb97120c08c9a [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
Jan Kiszka8ff2ff82021-09-18 08:17:53 +020016#include <configs/ti_armv7_common.h>
17
Jan Kiszkaa17dd7b2023-10-22 20:07:26 +020018/* allow up to 3 USB storage devices */
19#ifdef CONFIG_CMD_USB
20#undef BOOT_TARGET_USB
21#define BOOT_TARGET_USB(func) \
22 func(USB, usb, 0) \
23 func(USB, usb, 1) \
24 func(USB, usb, 2)
25#endif
26
Baocheng Suc9bdd3d2024-10-22 08:04:21 +020027/* DDR Configuration */
28#define CFG_SYS_SDRAM_BASE1 0x880000000
29
Jan Kiszka3c8dc182023-07-27 06:34:52 +020030/*
31 * This defines all MMC devices, even if the basic variant has no mmc1.
32 * The non-supported device will be removed from the boot targets during
33 * runtime, when that board was detected.
34 */
35#undef BOOT_TARGET_DEVICES
36#define BOOT_TARGET_DEVICES(func) \
37 func(MMC, mmc, 1) \
38 func(MMC, mmc, 0) \
39 BOOT_TARGET_USB(func)
40
Jan Kiszkaa6ea0c02023-02-28 19:19:14 +010041#ifdef CONFIG_ENV_WRITEABLE_LIST
42#define CFG_ENV_FLAGS_LIST_STATIC \
43 "board_uuid:sw,board_name:sw,board_serial:sw,board_a5e:sw," \
44 "mlfb:sw,fw_version:sw,seboot_version:sw," \
Jan Kiszka65f96a82024-10-22 08:04:18 +020045 "m2_manual_config:sw," \
Jan Kiszkaa6ea0c02023-02-28 19:19:14 +010046 "eth1addr:mw,eth2addr:mw,watchdog_timeout_ms:dw,boot_targets:sw"
47#endif
48
Jan Kiszka8ff2ff82021-09-18 08:17:53 +020049#endif /* __CONFIG_IOT2050_H */