aboutsummaryrefslogtreecommitdiff
path: root/include/axp221.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/axp221.h')
-rw-r--r--include/axp221.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/axp221.h b/include/axp221.h
index caffb910f4..a02e9b4f64 100644
--- a/include/axp221.h
+++ b/include/axp221.h
@@ -50,6 +50,7 @@
#define AXP221_SID 0x20
/* For axp_gpio.c */
+#ifdef CONFIG_AXP221_POWER
#define AXP_POWER_STATUS 0x00
#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5)
#define AXP_VBUS_IPSOUT 0x30
@@ -63,3 +64,4 @@
#define AXP_GPIO_CTRL_INPUT 0x02 /* Input */
#define AXP_GPIO_STATE 0x94
#define AXP_GPIO_STATE_OFFSET 0
+#endif