X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Faxp809.h;h=430dbef622b1bcc7f4640409a697a680cb4a9862;hb=64cfeda8ae2e95751c5d2dfa4dc4a906478ae2f6;hp=d27fb978d200ca95c624e9fd1d300db819417178;hpb=d77fa2ff766bbb4b867e791187f78b6033071613;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/axp809.h b/include/axp809.h index d27fb97..430dbef 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,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 @@ -58,3 +58,4 @@ #define AXP_GPIO_CTRL_INPUT 0x02 /* Input */ #define AXP_GPIO_STATE 0x94 #define AXP_GPIO_STATE_OFFSET 0 +#endif