X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Faxp818.h;h=8ac517a2bf29358016a014e12e92a8a121813b89;hb=9b5f9aeb3b48dbc059272168635a397ea5096a31;hp=959774c76fa63333b8569efa4235fede2bc50f1b;hpb=d77fa2ff766bbb4b867e791187f78b6033071613;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/axp818.h b/include/axp818.h index 959774c..8ac517a 100644 --- a/include/axp818.h +++ b/include/axp818.h @@ -1,9 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2015 Vishnu Patekar * * X-Powers AXP818 Power Management IC driver - * - * SPDX-License-Identifier: GPL-2.0+ */ #define AXP818_CHIP_ID 0x03 @@ -59,8 +58,10 @@ #define AXP818_SHUTDOWN_POWEROFF (1 << 7) /* For axp_gpio.c */ +#ifdef CONFIG_AXP818_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 @@ -72,3 +73,4 @@ #define AXP_GPIO_CTRL_INPUT 0x02 /* Input */ #define AXP_GPIO_STATE 0x94 #define AXP_GPIO_STATE_OFFSET 0 +#endif