summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2015-02-02 12:48:13 +0000
committerloos <loos@FreeBSD.org>2015-02-02 12:48:13 +0000
commitba803d12f9dc33b4deaad98edb996907e62705da (patch)
tree724f92432598b946f45855137e0eee44ffcabae8 /sys/boot
parent49286c2a5039b19eee631af2086b60bcb1c087da (diff)
downloadFreeBSD-src-ba803d12f9dc33b4deaad98edb996907e62705da.zip
FreeBSD-src-ba803d12f9dc33b4deaad98edb996907e62705da.tar.gz
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.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/fdt/dts/arm/am335x.dtsi7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/boot/fdt/dts/arm/am335x.dtsi b/sys/boot/fdt/dts/arm/am335x.dtsi
index 9378f34..011638c 100644
--- a/sys/boot/fdt/dts/arm/am335x.dtsi
+++ b/sys/boot/fdt/dts/arm/am335x.dtsi
@@ -75,6 +75,13 @@
interrupt-parent = <&AINTC>;
};
+ rtc: rtc@44E3E000 {
+ compatible = "ti,da830-rtc";
+ reg = <0x44E3E000 0x1000>;
+ interrupts = < 75 76 >;
+ interrupt-parent = <&AINTC>;
+ };
+
adc0: adc@44E0D000 {
compatible = "ti,adc";
reg = <0x44E0D000 0x2000>;
OpenPOWER on IntegriCloud