aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/am33xx-restart.c
diff options
context:
space:
mode:
authorAlexander Sverdlin <[email protected]>2024-02-21 16:45:51 +0100
committerTony Lindgren <[email protected]>2024-02-28 09:33:03 +0200
commit6521f6a195c70e16cab375ca1c4d23b6fd3d76b4 (patch)
tree31750fa1171591185131ca710ef834fe0426cb47 /arch/arm/mach-omap2/am33xx-restart.c
parent1afa7542be6ea0b10b81f7798c0566472d9fa53a (diff)
ARM: AM33xx: PRM: Implement REBOOT_COLD
Historically AM33xx performed warm software reset even though requested (and default) was REBOOT_COLD. Reflect the de-facto default mode in /sys/kernel/reboot/mode correctly and implement the real REBOOT_COLD (if configured explicitly). Tested-by: Matthias Michel <[email protected]> Signed-off-by: Alexander Sverdlin <[email protected]> Message-ID: <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'arch/arm/mach-omap2/am33xx-restart.c')
-rw-r--r--arch/arm/mach-omap2/am33xx-restart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/am33xx-restart.c b/arch/arm/mach-omap2/am33xx-restart.c
index bf6419d33565..fcf3d557aa78 100644
--- a/arch/arm/mach-omap2/am33xx-restart.c
+++ b/arch/arm/mach-omap2/am33xx-restart.c
@@ -18,7 +18,8 @@
*/
void am33xx_restart(enum reboot_mode mode, const char *cmd)
{
- /* TODO: Handle mode and cmd if necessary */
+ /* TODO: Handle cmd if necessary */
+ prm_reboot_mode = mode;
omap_prm_reset_system();
}