aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap4-reboot-reason.c
Commit message (Collapse)AuthorAgeFilesLines
* OMAP4: DPLL cascading: exit cascading before system restartVolodymyr Mieshkov2014-10-011-0/+9
| | | | | | | | | | | Exiting from DPLL cascading on system restart should be done before CPUs are turned off. In other case deadlocks are possible when mutex locked with idled CPU could be acquired with an active CPU. Change-Id: I608f8aee6c6f3e9a2c1fca0f06ea836222b121c2 Signed-off-by: Taras Kondratiuk <taras@ti.com> Signed-off-by: Andrii Tseglytskyi <andrii.tseglytskyi@ti.com> Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
* OMAP4+: reboot-reason: handle wdt triggerNishanth Menon2014-10-011-0/+7
| | | | | | | | | | | | | consider a scenario where one does a adb reboot-bootloader the SAR memory is populated with "bootloader", and fastboot reboot. If the bootloader does not cleanup the SAR memory and a wdt triggers, the normal arch reset path is not taken, instead bootloader will startup and detect the previous string, which is wrong. kernel should be able to recover as much as possible any miscoded bootloaders. Change-Id: Icec723287415511b7733955c47f8931e0b43d3c5 Signed-off-by: Nishanth Menon <nm@ti.com>
* OMAP4+: Add ability to store reboot reasonNishanth Menon2014-10-011-0/+54
Bootloaders need to know when their platforms do a reboot. The only memory that is retained is SAR ram accross reboots, provide ability to store the reboot reason in a standard location in the SAR memory (using the last 0xf bytes in SAR BANK1 ram). This is now populated with the string "normal" if the reboot is due to ordinary reboot commands, if the reboot reason is for other reasons, such as bootloader or recovery as is the case with Android systems, this stores the same. NOTE: bootloader should be updated accordingly. Change-Id: I32d05ef023682a1530b34315dac90fd97bed3265 Signed-off-by: Nishanth Menon <nm@ti.com> Conflicts: arch/arm/mach-omap2/Kconfig