X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Faxp_pmic.h;h=01ebba63479241f1cc5a0bb2875559ba6587e4f0;hb=46b5c8ed017958fc387ab86c71ae6c90abb6793c;hp=10091d0bb278ce275cbe6b17ab4135f4a452cc19;hpb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/axp_pmic.h b/include/axp_pmic.h index 10091d0..01ebba6 100644 --- a/include/axp_pmic.h +++ b/include/axp_pmic.h @@ -5,22 +5,26 @@ * X-Powers AX Power Management IC support header */ #ifndef _AXP_PMIC_H_ +#define _AXP_PMIC_H_ + +#include -#ifdef CONFIG_AXP152_POWER #include -#endif -#ifdef CONFIG_AXP209_POWER #include -#endif -#ifdef CONFIG_AXP221_POWER #include -#endif -#ifdef CONFIG_AXP809_POWER +#include #include -#endif -#ifdef CONFIG_AXP818_POWER #include -#endif + +#define AXP_PMIC_MODE_REG 0x3e +#define AXP_PMIC_MODE_I2C 0x00 +#define AXP_PMIC_MODE_P2WI 0x3e +#define AXP_PMIC_MODE_RSB 0x7c + +#define AXP_PMIC_PRI_DEVICE_ADDR 0x3a3 +#define AXP_PMIC_PRI_RUNTIME_ADDR 0x2d +#define AXP_PMIC_SEC_DEVICE_ADDR 0x745 +#define AXP_PMIC_SEC_RUNTIME_ADDR 0x3a int axp_set_dcdc1(unsigned int mvolt); int axp_set_dcdc2(unsigned int mvolt);