From 80088504c8151eb7a3d8283bce0ad645eeb636f2 Mon Sep 17 00:00:00 2001 From: "Ye.Li" Date: Thu, 9 Jul 2015 14:20:00 +0800 Subject: MLK-11228-2 android: Add fastboot command "reboot-bootloader" support enable fastboot command: "fastboot reboot-bootloader" After type this command, the board will reboot to bootloader mode. Set ANDROID_FASTBOOT_BOOT flag in SNVS_LPGPR before reboot. Signed-off-by: Zhang Sanshan Signed-off-by: Ye.Li --- arch/arm/cpu/armv7/mx7/soc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/arm/cpu/armv7/mx7/soc.c') diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c index c459797..e30493e 100644 --- a/arch/arm/cpu/armv7/mx7/soc.c +++ b/arch/arm/cpu/armv7/mx7/soc.c @@ -442,4 +442,10 @@ int fastboot_check_and_clean_flag(void) return flag_set; } + +void fastboot_enable_flag(void) +{ + setbits_le32(SNVS_BASE_ADDR + SNVS_LPGPR, + ANDROID_FASTBOOT_BOOT); +} #endif /*CONFIG_FSL_FASTBOOT*/ -- cgit v1.1