diff options
author | Simon Shields <simon@lineageos.org> | 2018-06-15 00:12:40 +1000 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-03-28 01:14:47 +0100 |
commit | fafc3578ab24489fc4b85ca830a078cffe7a219e (patch) | |
tree | 64c548a8457eee6143e1c183cd5b5f8d0d817135 | |
parent | c5b3298b942914b800036cfe87c59e3c74171bed (diff) | |
download | u-boot-midas-fafc3578ab24489fc4b85ca830a078cffe7a219e.tar.gz u-boot-midas-fafc3578ab24489fc4b85ca830a078cffe7a219e.tar.bz2 u-boot-midas-fafc3578ab24489fc4b85ca830a078cffe7a219e.zip |
i9300: add "set reboot flag" function for fastboot reboot-bootloader
-rw-r--r-- | board/samsung/i9300/i9300.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/samsung/i9300/i9300.c b/board/samsung/i9300/i9300.c index bd36689508..b61911a7fb 100644 --- a/board/samsung/i9300/i9300.c +++ b/board/samsung/i9300/i9300.c @@ -276,6 +276,14 @@ struct dwc2_plat_otg_data exynos4_otg_data = { .usb_flags = PHY0_SLEEP, }; +int fb_set_reboot_flag(void) +{ + struct exynos4412_power *pwr = (struct exynos4412_power *)samsung_get_base_power(); + + writel(INFORM_MAGIC | MODE_FASTBOOT, &pwr->inform3); + return 0; +} + int board_usb_init(int index, enum usb_init_type init) { pr_info("Board usb init! %d %d\n", index, init); |