blob: f12e9bdef5a311ca7d36bc41c81461ba1c321d69 [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
12#define ENV_MEM_LAYOUT_SETTINGS \
13 "fdt_addr_r=0x960100000\0" \
14 "kernel_addr_r=0x960200000\0"
15
Mark Kettenisdbb273a2022-01-22 20:38:19 +010016#if CONFIG_IS_ENABLED(CMD_NVME)
17 #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
18#else
19 #define BOOT_TARGET_NVME(func)
20#endif
21
Mark Kettenis003b6572021-10-23 16:58:03 +020022#if CONFIG_IS_ENABLED(CMD_USB)
23 #define BOOT_TARGET_USB(func) func(USB, usb, 0)
24#else
25 #define BOOT_TARGET_USB(func)
26#endif
27
28#define BOOT_TARGET_DEVICES(func) \
Mark Kettenisdbb273a2022-01-22 20:38:19 +010029 BOOT_TARGET_NVME(func) \
Mark Kettenis003b6572021-10-23 16:58:03 +020030 BOOT_TARGET_USB(func)
31
32#include <config_distro_bootcmd.h>
33
34#define CONFIG_EXTRA_ENV_SETTINGS \
35 ENV_DEVICE_SETTINGS \
36 ENV_MEM_LAYOUT_SETTINGS \
37 BOOTENV
38
39#endif