diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2018-11-21 20:05:28 +0200 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-12-07 22:24:33 +0530 |
commit | f5eebc792559d33ddf973f640f7570d042e3bbe8 (patch) | |
tree | 0ebdc76297fb1975ff6b72cfde204b352a281e09 /include/axp209.h | |
parent | 048447ce4a365d7ab24fba0900f192fc7166975d (diff) |
power: axp209: Define the chip version mask
Use a define for the chip version mask on the axp209.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Priit Laes <plaes@plaes.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'include/axp209.h')
-rw-r--r-- | include/axp209.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/axp209.h b/include/axp209.h index 3a4fc28196..43e3873e24 100644 --- a/include/axp209.h +++ b/include/axp209.h @@ -25,6 +25,8 @@ enum axp209_reg { #define AXP209_POWER_STATUS_ON_BY_DC BIT(0) #define AXP209_POWER_STATUS_VBUS_USABLE BIT(4) +#define AXP209_CHIP_VERSION_MASK 0x0f + #define AXP209_OUTPUT_CTRL_EXTEN BIT(0) #define AXP209_OUTPUT_CTRL_DCDC3 BIT(1) #define AXP209_OUTPUT_CTRL_LDO2 BIT(2) |