X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Faxp809.h;h=8082e402e2ab2348aad0a46ec13e771068f49923;hb=46b5c8ed017958fc387ab86c71ae6c90abb6793c;hp=d27fb978d200ca95c624e9fd1d300db819417178;hpb=82f2a144917d6cc5f8a9a49b1a1a15b0fb5742d5;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/axp809.h b/include/axp809.h index d27fb97..8082e40 100644 --- a/include/axp809.h +++ b/include/axp809.h @@ -1,9 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2016 Chen-Yu Tsai * * X-Powers AXP809 Power Management IC driver - * - * SPDX-License-Identifier: GPL-2.0+ */ #define AXP809_CHIP_ID 0x03 @@ -45,8 +44,10 @@ #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_POWER_STATUS_ALDO_IN BIT(0) +#define AXP_POWER_STATUS_VBUS_PRESENT BIT(5) #define AXP_VBUS_IPSOUT 0x30 #define AXP_VBUS_IPSOUT_DRIVEBUS (1 << 2) #define AXP_MISC_CTRL 0x8f @@ -58,3 +59,4 @@ #define AXP_GPIO_CTRL_INPUT 0x02 /* Input */ #define AXP_GPIO_STATE 0x94 #define AXP_GPIO_STATE_OFFSET 0 +#endif