aboutsummaryrefslogtreecommitdiff
path: root/include/axp152.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2022-01-21 13:37:31 +0000
committerAndre Przywara <andre.przywara@arm.com>2022-01-30 01:25:00 +0000
commit78592c094e7a81cc099b3f71b05463ddcabe2a73 (patch)
tree849becdff4b1d9a81fe2c1101f44c41ae9aee31d /include/axp152.h
parent8695b5111c5cf6587e5e97d6e879421fc54dc8d8 (diff)
downloadu-boot-78592c094e7a81cc099b3f71b05463ddcabe2a73.zip
u-boot-78592c094e7a81cc099b3f71b05463ddcabe2a73.tar.gz
u-boot-78592c094e7a81cc099b3f71b05463ddcabe2a73.tar.bz2
pmic: axp: define ALDO_IN startup bit
Most AXP PMICs feature a "startup source" register, which keeps information about how the PMIC started operation. Bit 0 in there means it has been started by "plugging in the power cable". Define a symbol in each PMIC's header file to be able to use that register and bit later on. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'include/axp152.h')
-rw-r--r--include/axp152.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/axp152.h b/include/axp152.h
index 10d845f..bac6526 100644
--- a/include/axp152.h
+++ b/include/axp152.h
@@ -16,6 +16,8 @@ enum axp152_reg {
/* For axp_gpio.c */
#ifdef CONFIG_AXP152_POWER
+#define AXP_POWER_STATUS 0x00
+#define AXP_POWER_STATUS_ALDO_IN BIT(0)
#define AXP_GPIO0_CTRL 0x90
#define AXP_GPIO1_CTRL 0x91
#define AXP_GPIO2_CTRL 0x92