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