aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-meson
diff options
context:
space:
mode:
authorRoman Kovalivskyi <roman.kovalivskyi@globallogic.com>2020-07-28 23:35:32 +0300
committerMarek Vasut <marex@denx.de>2020-09-01 14:47:43 +0200
commit851737ab8922742732bea5f70407cb95cafcb3ee (patch)
treebde70e242207d0cf54401537d3de4f5d1f6abd64 /arch/arm/mach-meson
parent73f4ebb659df4996e154b17f14866fb166447be0 (diff)
downloadu-boot-851737ab8922742732bea5f70407cb95cafcb3ee.zip
u-boot-851737ab8922742732bea5f70407cb95cafcb3ee.tar.gz
u-boot-851737ab8922742732bea5f70407cb95cafcb3ee.tar.bz2
fastboot: Extend fastboot_set_reboot_flag with reboot reason
Extend fastboot_set_reboot_flag arguments with reboot reason so that it could handle different reboot cases in future. Signed-off-by: Roman Kovalivskyi <roman.kovalivskyi@globallogic.com>
Diffstat (limited to 'arch/arm/mach-meson')
-rw-r--r--arch/arm/mach-meson/board-common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c
index 0f21ec8..7ea0ed4 100644
--- a/arch/arm/mach-meson/board-common.c
+++ b/arch/arm/mach-meson/board-common.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <cpu_func.h>
+#include <fastboot.h>
#include <init.h>
#include <net.h>
#include <asm/arch/boot.h>
@@ -153,8 +154,11 @@ int board_late_init(void)
#if CONFIG_IS_ENABLED(FASTBOOT)
static unsigned int reboot_reason = REBOOT_REASON_NORMAL;
-int fastboot_set_reboot_flag()
+int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
{
+ if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER)
+ return -ENOTSUPP;
+
reboot_reason = REBOOT_REASON_BOOTLOADER;
printf("Using reboot reason: 0x%x\n", reboot_reason);