| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * Configuration for JetHome devices |
| * Copyright (C) 2021 Vyacheslav Bocharov |
| * Author: Vyacheslav Bocharov <adeep@lexina.in> |
| #ifndef __JETHUB_CONFIG_H |
| #define __JETHUB_CONFIG_H |
| #if defined(CONFIG_MESON_AXG) |
| #define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \ |
| "if gpio input 10; then " \ |
| #define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \ |
| "if test \"${userbutton}\" = \"true\"; then " \ |
| #define BOOTENV_DEV_NAME_RESCUE(devtypeu, devtypel, instance) \ |
| #ifndef BOOT_TARGET_DEVICES |
| #define BOOT_TARGET_DEVICES(func) \ |
| func(RESCUE, rescue, na) \ |
| BOOT_TARGET_DEVICES_USB(func) \ |
| #include <configs/meson64.h> |
| #endif /* __JETHUB_CONFIG_H */ |