diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2016-09-18 13:07:25 +0200 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2016-09-18 15:57:25 +0200 |
commit | ae07c5c0cc8173d198fd2a420ac31958a1bbbf32 (patch) | |
tree | 0dc10fdecc7be400e0615f86a285e4096c928249 /include | |
parent | d98f436149fbf3dc4c0d30ba7549f53f8d8f8259 (diff) |
pmic: add DM driver for the AXP806 and AXP809
Diffstat (limited to 'include')
-rw-r--r-- | include/power/axp806_pmic.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/include/power/axp806_pmic.h b/include/power/axp806_pmic.h new file mode 100644 index 0000000000..9c29c26f98 --- /dev/null +++ b/include/power/axp806_pmic.h @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2016 Theobroma Systems Design und Consulting GmbH + * Written by Dr. Philipp Tomsich <philipp.tomsich@theobroma-systems.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef _PMIC_AXP806_H_ +#define _PMIC_AXP806_H_ + +enum { + AXP806_STARTUP_SRC = 0x00, + AXP806_CHIP_ID = 0x03, + AXP806_PWR_OUT_CTRL1 = 0x10, + AXP806_PWR_OUT_CTRL2, + AXP806_DCDCA_V_CTRL, + AXP806_DCDCB_V_CTRL, + AXP806_DCDCC_V_CTRL, + AXP806_DCDCD_V_CTRL, + AXP806_DCDCE_V_CTRL, + AXP806_ALDO1_V_CTRL, + AXP806_ALDO2_V_CTRL, + AXP806_ALDO3_V_CTRL, + AXP806_DCDC_MODE_CTRL1, + AXP806_DCDC_MODE_CTRL2, + AXP806_DCDC_FREQ_CTRL, + AXP806_OUTPUT_MONITOR, + AXP806_IRQ_PWROK_OFF, + AXP806_BLDO1_V_CTRL, + AXP806_BLDO2_V_CTRL, + AXP806_BLDO3_V_CTRL, + AXP806_BLDO4_V_CTRL, + AXP806_CLDO1_V_CTRL, + AXP806_CLDO2_V_CTRL, + AXP806_CLDO3_V_CTRL, + AXP806_WAKEUP_CTRL = 0x31, + AXP806_POWERDOWN, + AXP806_WAKEUP_PINCTRL = 0x35, + AXP806_INTERFACE_MODE = 0x3e, + AXP806_SPECIAL_CTRL, + AXP806_IRQ_ENABLE1, + AXP806_IRQ_ENABLE2, + AXP806_IRQ_STATUS1 = 0x48, + AXP806_IRQ_STATUS2, + AXP806_VREF_TEMP_WARN_L = 0xf3, + AXP806_BUSADDR_EXT = 0xfe, + AXP806_REGADDR_EXT, + AXP806_NUM_OF_REGS, +}; + +struct axp806_reg_table { + char *name; + u8 reg_ctl; + u8 reg_vol; +}; + +// int rk808_spl_configure_buck(struct udevice *pmic, int buck, int uvolt); + +#endif |