Clarify notifications when battery capacity ratio

reaches warning and shutdown thresholds.
This commit is contained in:
Ganbold Tsagaankhuu 2019-02-20 07:10:38 +00:00
parent adedf5ee31
commit 90ce6e8cfd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344343

View File

@ -1088,9 +1088,9 @@ axp8xx_intr(void *arg)
if (bootverbose)
device_printf(dev, "AXP_IRQSTAT4 val: %x\n", val);
if (val & AXP_IRQSTAT4_BATLVL_LO0)
devctl_notify("PMU", "Battery", "lower than level 2", NULL);
devctl_notify("PMU", "Battery", "shutdown threshold", NULL);
if (val & AXP_IRQSTAT4_BATLVL_LO1)
devctl_notify("PMU", "Battery", "lower than level 1", NULL);
devctl_notify("PMU", "Battery", "warning threshold", NULL);
/* Acknowledge */
axp8xx_write(dev, AXP_IRQSTAT4, val);
}