From ae07c5c0cc8173d198fd2a420ac31958a1bbbf32 Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Sun, 18 Sep 2016 13:07:25 +0200 Subject: pmic: add DM driver for the AXP806 and AXP809 --- include/power/axp806_pmic.h | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 include/power/axp806_pmic.h (limited to 'include/power') 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 + * + * 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 -- cgit v1.2.3