commit | a5c4a24da24dc614999f8f40dc96b0712ddb48ad | [log] [tgz] |
---|---|---|
author | Trevor Bourget <tbourget@codeaurora.org> | Tue Nov 08 15:37:08 2011 -0800 |
committer | Trevor Bourget <tbourget@codeaurora.org> | Tue Nov 08 21:06:34 2011 -0800 |
tree | de95ea3d9cce99bf56bcbd98753a62c03e889b6c | |
parent | c43d884a2e1998be629fcce029ed05a4794666ca [diff] [blame] |
msm8960: write reboot reason before reset fastboot reboot-bootloader requires reboot reason to be set to work properly.
diff --git a/target/msm8960/init.c b/target/msm8960/init.c index 5e5d107..9047829 100644 --- a/target/msm8960/init.c +++ b/target/msm8960/init.c
@@ -270,6 +270,8 @@ void reboot_device(unsigned reboot_reason) { + writel(reboot_reason, RESTART_REASON_ADDR); + /* Actually reset the chip */ pm8921_config_reset_pwr_off(1); writel(0, MSM_PSHOLD_CTL_SU);