/* * drivers/power/axp/axp80x/axp80x-regulator.h * (C) Copyright 2010-2016 * Allwinner Technology Co., Ltd. * Pannan * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * */ #ifndef __AXP80X_REGULATOR_H_ #define __AXP80X_REGULATOR_H_ enum { AXP80X_ID_LDO1, AXP80X_ID_LDO2, AXP80X_ID_LDO3, AXP80X_ID_LDO4, AXP80X_ID_LDO5, AXP80X_ID_LDO6, AXP80X_ID_LDO7, AXP80X_ID_LDO8, AXP80X_ID_LDO9, AXP80X_ID_LDO10, AXP80X_ID_LDO11, AXP80X_ID_DCDCA = AXP_DCDC_ID_START, AXP80X_ID_DCDCB, AXP80X_ID_DCDCC, AXP80X_ID_DCDCD, AXP80X_ID_DCDCE, AXP80X_REG_MAX, }; /* AXP80 Regulator Registers */ #define AXP80X_DCDCA AXP80X_DCAOUT_VOL #define AXP80X_DCDCB AXP80X_DCBOUT_VOL #define AXP80X_DCDCC AXP80X_DCCOUT_VOL #define AXP80X_DCDCD AXP80X_DCDOUT_VOL #define AXP80X_DCDCE AXP80X_DCEOUT_VOL #define AXP80X_ALDO1 AXP80X_ALDO1OUT_VOL #define AXP80X_ALDO2 AXP80X_ALDO2OUT_VOL #define AXP80X_ALDO3 AXP80X_ALDO3OUT_VOL #define AXP80X_BLDO1 AXP80X_BLDO1OUT_VOL #define AXP80X_BLDO2 AXP80X_BLDO2OUT_VOL #define AXP80X_BLDO3 AXP80X_BLDO3OUT_VOL #define AXP80X_BLDO4 AXP80X_BLDO4OUT_VOL #define AXP80X_CLDO1 AXP80X_CLDO1OUT_VOL #define AXP80X_CLDO2 AXP80X_CLDO2OUT_VOL #define AXP80X_CLDO3 AXP80X_CLDO3OUT_VOL #define AXP80X_SW AXP80X_STARTUP_SOURCE #define AXP80X_ALDO1EN AXP80X_ONOFF_CTRL1 #define AXP80X_ALDO2EN AXP80X_ONOFF_CTRL1 #define AXP80X_ALDO3EN AXP80X_ONOFF_CTRL1 #define AXP80X_BLDO1EN AXP80X_ONOFF_CTRL2 #define AXP80X_BLDO2EN AXP80X_ONOFF_CTRL2 #define AXP80X_BLDO3EN AXP80X_ONOFF_CTRL2 #define AXP80X_BLDO4EN AXP80X_ONOFF_CTRL2 #define AXP80X_CLDO1EN AXP80X_ONOFF_CTRL2 #define AXP80X_CLDO2EN AXP80X_ONOFF_CTRL2 #define AXP80X_CLDO3EN AXP80X_ONOFF_CTRL2 #define AXP80X_SWEN AXP80X_ONOFF_CTRL2 #define AXP80X_DCDCAEN AXP80X_ONOFF_CTRL1 #define AXP80X_DCDCBEN AXP80X_ONOFF_CTRL1 #define AXP80X_DCDCCEN AXP80X_ONOFF_CTRL1 #define AXP80X_DCDCDEN AXP80X_ONOFF_CTRL1 #define AXP80X_DCDCEEN AXP80X_ONOFF_CTRL1 #endif /* __AXP80X_REGULATOR_H_ */