1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Configuration for JetHome devices
4 * Copyright (C) 2021 Vyacheslav Bocharov
5 * Author: Vyacheslav Bocharov <adeep@lexina.in>
8 #ifndef __JETHUB_CONFIG_H
9 #define __JETHUB_CONFIG_H
11 #if defined(CONFIG_MESON_AXG)
12 #define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \
14 "if gpio input 10; then " \
18 #define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \
20 "if test \"${userbutton}\" = \"true\"; then " \
21 "run bootcmd_mmc0; " \
25 #define BOOTENV_DEV_NAME_RESCUE(devtypeu, devtypel, instance) \
28 #ifndef BOOT_TARGET_DEVICES
29 #define BOOT_TARGET_DEVICES(func) \
30 func(RESCUE, rescue, na) \
33 BOOT_TARGET_DEVICES_USB(func) \
38 #include <configs/meson64.h>
40 #endif /* __JETHUB_CONFIG_H */