diff options
author | loos <loos@FreeBSD.org> | 2015-01-12 03:23:16 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2015-01-12 03:23:16 +0000 |
commit | 8e5fb35624be57a7cb25a227750de7adca8749c2 (patch) | |
tree | 0ec3429f5b8a8f2c52c272a1bf835ffe28e584a9 /sys/arm/ti/am335x/files.am335x | |
parent | 17bc7b87655a451570af2ed2287b971871cbc909 (diff) | |
download | FreeBSD-src-8e5fb35624be57a7cb25a227750de7adca8749c2.zip FreeBSD-src-8e5fb35624be57a7cb25a227750de7adca8749c2.tar.gz |
Add support to turn off Beaglebone with poweroff(8) or shutdown(8) -p.
To cut off the power we need to start the shutdown sequence by writing
the OFF bit on PMIC.
Once the PMIC is programmed the SoC needs to toggle the PMIC_PWR_ENABLE
pin when it is ready for the PMIC to cut off the power. This is done by
triggering the ALARM2 interrupt on SoC RTC.
The RTC driver only works in power management mode which means it won't
provide any kind of time keeping functionality. It only implements a way
to trigger the ALARM2 interrupt when requested.
Differential Revision: https://reviews.freebsd.org/D1489
Reviewed by: rpaulo
MFC after: 2 weeks
Diffstat (limited to 'sys/arm/ti/am335x/files.am335x')
-rw-r--r-- | sys/arm/ti/am335x/files.am335x | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/ti/am335x/files.am335x b/sys/arm/ti/am335x/files.am335x index c70377a..465a7fc 100644 --- a/sys/arm/ti/am335x/files.am335x +++ b/sys/arm/ti/am335x/files.am335x @@ -9,6 +9,7 @@ arm/ti/am335x/am335x_lcd_syscons.c optional sc arm/ti/am335x/am335x_pmic.c optional am335x_pmic arm/ti/am335x/am335x_prcm.c standard arm/ti/am335x/am335x_pwm.c standard +arm/ti/am335x/am335x_rtc.c optional am335x_rtc arm/ti/am335x/am335x_scm_padconf.c standard arm/ti/am335x/am335x_usbss.c optional musb fdt |