]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r277042:
authorloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Feb 2015 12:48:13 +0000 (12:48 +0000)
committerloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Feb 2015 12:48:13 +0000 (12:48 +0000)
commita74e316c09d96c52f6c3d64bf140653ca80860dc
tree724f92432598b946f45855137e0eee44ffcabae8
parent8b0255da5e11c65b6b91b9cec8ef4364ce238665
MFC r277042:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@278079 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/arm/conf/BEAGLEBONE
sys/arm/ti/am335x/am335x_pmic.c
sys/arm/ti/am335x/am335x_prcm.c
sys/arm/ti/am335x/am335x_rtc.c [new file with mode: 0644]
sys/arm/ti/am335x/am335x_rtcreg.h [new file with mode: 0644]
sys/arm/ti/am335x/am335x_rtcvar.h [new file with mode: 0644]
sys/arm/ti/am335x/files.am335x
sys/arm/ti/ti_prcm.h
sys/boot/fdt/dts/arm/am335x.dtsi