2021-10-23 14:58:03 +00:00
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
|
|
|
|
/* Environment */
|
|
|
|
#define ENV_DEVICE_SETTINGS \
|
2022-01-23 15:48:13 +00:00
|
|
|
"stdin=serial,usbkbd,spikbd\0" \
|
2021-10-23 14:58:03 +00:00
|
|
|
"stdout=serial,vidconsole\0" \
|
|
|
|
"stderr=serial,vidconsole\0"
|
|
|
|
|
|
|
|
#define ENV_MEM_LAYOUT_SETTINGS \
|
|
|
|
"fdt_addr_r=0x960100000\0" \
|
|
|
|
"kernel_addr_r=0x960200000\0"
|
|
|
|
|
2022-01-22 19:38:19 +00:00
|
|
|
#if CONFIG_IS_ENABLED(CMD_NVME)
|
|
|
|
#define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
|
|
|
|
#else
|
|
|
|
#define BOOT_TARGET_NVME(func)
|
|
|
|
#endif
|
|
|
|
|
2021-10-23 14:58:03 +00:00
|
|
|
#if CONFIG_IS_ENABLED(CMD_USB)
|
|
|
|
#define BOOT_TARGET_USB(func) func(USB, usb, 0)
|
|
|
|
#else
|
|
|
|
#define BOOT_TARGET_USB(func)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
2022-01-22 19:38:19 +00:00
|
|
|
BOOT_TARGET_NVME(func) \
|
2021-10-23 14:58:03 +00:00
|
|
|
BOOT_TARGET_USB(func)
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
ENV_DEVICE_SETTINGS \
|
|
|
|
ENV_MEM_LAYOUT_SETTINGS \
|
|
|
|
BOOTENV
|
|
|
|
|
|
|
|
#endif
|