aboutsummaryrefslogtreecommitdiff
path: root/include/axp209.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/axp209.h')
-rw-r--r--include/axp209.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/axp209.h b/include/axp209.h
index f4f1b2fe56..30399a8d62 100644
--- a/include/axp209.h
+++ b/include/axp209.h
@@ -74,6 +74,7 @@ enum axp209_reg {
#define AXP209_POWEROFF BIT(7)
/* For axp_gpio.c */
+#ifdef CONFIG_AXP209_POWER
#define AXP_POWER_STATUS 0x00
#define AXP_POWER_STATUS_VBUS_PRESENT BIT(5)
#define AXP_GPIO0_CTRL 0x90
@@ -84,3 +85,4 @@ enum axp209_reg {
#define AXP_GPIO_CTRL_INPUT 0x02 /* Input */
#define AXP_GPIO_STATE 0x94
#define AXP_GPIO_STATE_OFFSET 4
+#endif