blob: e22db4991debeae15692ed0546fee9d0f0cd4642 [file] [log] [blame]
Vyacheslav Bocharov15eda542021-09-20 11:40:14 +03001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Configuration for JetHome devices
4 * Copyright (C) 2021 Vyacheslav Bocharov
5 * Author: Vyacheslav Bocharov <adeep@lexina.in>
6 */
7
8#ifndef __JETHUB_CONFIG_H
9#define __JETHUB_CONFIG_H
10
11#if defined(CONFIG_MESON_AXG)
12#define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \
13 "bootcmd_rescue=" \
14 "if gpio input 10; then " \
Viacheslav Bocharov55987152022-12-22 12:33:58 +030015 "run bootcmd_mmc0; " \
Vyacheslav Bocharov15eda542021-09-20 11:40:14 +030016 "run bootcmd_usb0;" \
17 "fi;\0"
18#else
19#define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \
20 "bootcmd_rescue=" \
21 "if test \"${userbutton}\" = \"true\"; then " \
22 "run bootcmd_mmc0; " \
23 "fi;\0"
24#endif
25
26#define BOOTENV_DEV_NAME_RESCUE(devtypeu, devtypel, instance) \
27 "rescue "
28
29#ifndef BOOT_TARGET_DEVICES
30#define BOOT_TARGET_DEVICES(func) \
31 func(RESCUE, rescue, na) \
32 func(MMC, mmc, 1) \
33 func(MMC, mmc, 0) \
34 BOOT_TARGET_DEVICES_USB(func) \
35 func(PXE, pxe, na) \
36 func(DHCP, dhcp, na)
37#endif
38
39#include <configs/meson64.h>
40
41#endif /* __JETHUB_CONFIG_H */