blob: 0576bc04c94807370369f2ca89b36628715b30b3 [file] [log] [blame]
Mark Kettenis003b6572021-10-23 16:58:03 +02001#ifndef __CONFIG_H
2#define __CONFIG_H
3
4#include <linux/sizes.h>
5
Mark Kettenis003b6572021-10-23 16:58:03 +02006/* Environment */
7#define ENV_DEVICE_SETTINGS \
Mark Kettenisd42f1072022-01-23 16:48:13 +01008 "stdin=serial,usbkbd,spikbd\0" \
Mark Kettenis003b6572021-10-23 16:58:03 +02009 "stdout=serial,vidconsole\0" \
10 "stderr=serial,vidconsole\0"
11
Simon Glass96dad852023-02-05 15:36:37 -070012#if IS_ENABLED(CONFIG_CMD_NVME)
Mark Kettenisdbb273a2022-01-22 20:38:19 +010013 #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
14#else
15 #define BOOT_TARGET_NVME(func)
16#endif
17
Simon Glass93bb62a2023-02-05 15:36:46 -070018#if IS_ENABLED(CONFIG_CMD_USB)
Mark Kettenis003b6572021-10-23 16:58:03 +020019 #define BOOT_TARGET_USB(func) func(USB, usb, 0)
20#else
21 #define BOOT_TARGET_USB(func)
22#endif
23
24#define BOOT_TARGET_DEVICES(func) \
Mark Kettenisdbb273a2022-01-22 20:38:19 +010025 BOOT_TARGET_NVME(func) \
Mark Kettenis003b6572021-10-23 16:58:03 +020026 BOOT_TARGET_USB(func)
27
28#include <config_distro_bootcmd.h>
29
Tom Rini0613c362022-12-04 10:03:50 -050030#define CFG_EXTRA_ENV_SETTINGS \
Mark Kettenis003b6572021-10-23 16:58:03 +020031 ENV_DEVICE_SETTINGS \
Mark Kettenis003b6572021-10-23 16:58:03 +020032 BOOTENV
33
34#endif