diff options
author | Andre Przywara | 2022-01-21 13:37:31 +0000 |
---|---|---|
committer | Andre Przywara | 2022-01-30 01:25:00 +0000 |
commit | 78592c094e7a81cc099b3f71b05463ddcabe2a73 (patch) | |
tree | 849becdff4b1d9a81fe2c1101f44c41ae9aee31d /include/axp305.h | |
parent | 8695b5111c5cf6587e5e97d6e879421fc54dc8d8 (diff) |
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/axp305.h')
-rw-r--r-- | include/axp305.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/axp305.h b/include/axp305.h index 225c5040a32..0a42bc68042 100644 --- a/include/axp305.h +++ b/include/axp305.h @@ -15,3 +15,6 @@ enum axp305_reg { #define AXP305_OUTPUT_CTRL1_DCDCD_EN (1 << 3) #define AXP305_POWEROFF (1 << 7) + +#define AXP_POWER_STATUS 0x00 +#define AXP_POWER_STATUS_ALDO_IN BIT(0) |