aboutsummaryrefslogtreecommitdiff
path: root/include/axp809.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/axp809.h')
-rw-r--r--include/axp809.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/axp809.h b/include/axp809.h
index 86b2925330..430dbef622 100644
--- a/include/axp809.h
+++ b/include/axp809.h
@@ -44,6 +44,7 @@
#define AXP809_SHUTDOWN_POWEROFF (1 << 7)
/* For axp_gpio.c */
+#ifdef CONFIG_AXP809_POWER
#define AXP_POWER_STATUS 0x00
#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5)
#define AXP_VBUS_IPSOUT 0x30
@@ -57,3 +58,4 @@
#define AXP_GPIO_CTRL_INPUT 0x02 /* Input */
#define AXP_GPIO_STATE 0x94
#define AXP_GPIO_STATE_OFFSET 0
+#endif