diff options
author | Tom Rini <trini@konsulko.com> | 2020-09-03 09:48:28 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-03 09:48:28 -0400 |
commit | 9bfb567e5f1bfe7de8eb41f8c6d00f49d2b9a426 (patch) | |
tree | 50aa5bfd07887062e0d6808158a02434c9a85116 /board/amazon/kc1/kc1.c | |
parent | 7f4d3c044504668fcbc547af52e0c2c4fd715d27 (diff) | |
parent | 293a6dfeb96129abebf1ad927fa9aedf03a66d34 (diff) | |
download | u-boot-9bfb567e5f1bfe7de8eb41f8c6d00f49d2b9a426.tar.gz |
Merge branch 'master' of git://git.denx.de/u-boot-usbWIP/03Sep2020
- Mostly DFU fixes and r8152 fixes
Diffstat (limited to 'board/amazon/kc1/kc1.c')
-rw-r--r-- | board/amazon/kc1/kc1.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/amazon/kc1/kc1.c b/board/amazon/kc1/kc1.c index 7d62a1d5a8..973bc5a927 100644 --- a/board/amazon/kc1/kc1.c +++ b/board/amazon/kc1/kc1.c @@ -8,6 +8,7 @@ #include <config.h> #include <common.h> #include <env.h> +#include <fastboot.h> #include <init.h> #include <linux/ctype.h> #include <linux/usb/musb.h> @@ -163,8 +164,11 @@ void get_board_serial(struct tag_serialnr *serialnr) omap_die_id_get_board_serial(serialnr); } -int fastboot_set_reboot_flag(void) +int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason) { + if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER) + return -ENOTSUPP; + return omap_reboot_mode_store("b"); } |