]> Zhao Yanbai Git Server - minix.git/commit
kernel: add support for am335x PMIC-base power-off 98/698/2
authorThomas Cort <tcort@minix3.org>
Fri, 2 Aug 2013 14:10:55 +0000 (10:10 -0400)
committerThomas Cort <tcort@minix3.org>
Mon, 5 Aug 2013 14:22:59 +0000 (10:22 -0400)
commit6d7eff80230fb4b187175de975f60c82f04cb13f
treeead38fcdd6a73461f6e9fdf223151c1744eb0432
parentd9b62047f11992d8ff3e5da25f6837e68032023b
kernel: add support for am335x PMIC-base power-off

AM335X SoCs support power-off via a power management
chip (PMIC). An alarm in the real time clock is used
to trigger the PMIC to cut the power.

To ensure the alarm goes off when the system is in
a safe state, the RTC is frozen when the alarm is
set. At the last moment, the kernel unfreezes the RTC
to let the alarm go off.

This patch adds a mini driver for unfreezing the RTC
as well as code to handle RBT_POWEROFF on Minix/arm.

Change-Id: I7d48e75791e3a81bdd2f7704997193a269409fe8
kernel/arch/earm/Makefile.inc
kernel/arch/earm/arch_reset.c
kernel/arch/earm/arch_system.c
kernel/arch/earm/omap_rtc.c [new file with mode: 0644]
kernel/arch/earm/omap_rtc.h [new file with mode: 0644]