97 lines
3.3 KiB
C
97 lines
3.3 KiB
C
/*
|
|
* drivers/power/supply/pmu1736/pmu1736-regu.h
|
|
* (C) Copyright 2010-2016
|
|
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
|
|
* Pannan <pannan@allwinnertech.com>
|
|
*
|
|
* 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 PMU1736_REGU_H_
|
|
#define PMU1736_REGU_H_
|
|
|
|
enum {
|
|
PMU1736_ID_LDO1,
|
|
PMU1736_ID_LDO2,
|
|
PMU1736_ID_LDO3,
|
|
PMU1736_ID_LDO4,
|
|
PMU1736_ID_LDO5,
|
|
PMU1736_ID_LDO6,
|
|
PMU1736_ID_LDO7,
|
|
PMU1736_ID_LDO8,
|
|
PMU1736_ID_LDO9,
|
|
PMU1736_ID_LDO10,
|
|
PMU1736_ID_LDO11,
|
|
PMU1736_ID_LDO12,
|
|
PMU1736_ID_LDO13,
|
|
PMU1736_ID_LDO14,
|
|
PMU1736_ID_LDO15,
|
|
PMU1736_ID_LDO16,
|
|
PMU1736_ID_LDOIO1 = AXP_LDOIO_ID_START,
|
|
PMU1736_ID_LDOIO2,
|
|
PMU1736_ID_SW1,
|
|
PMU1736_ID_DCDC1 = AXP_DCDC_ID_START,
|
|
PMU1736_ID_DCDC2,
|
|
PMU1736_ID_DCDC3,
|
|
PMU1736_ID_DCDC4,
|
|
PMU1736_ID_DCDC5,
|
|
PMU1736_ID_DCDC6,
|
|
};
|
|
|
|
#define PMU1736_DCDC1 PMU1736_DC1OUT_VOL
|
|
#define PMU1736_DCDC2 PMU1736_DC2OUT_VOL
|
|
#define PMU1736_DCDC3 PMU1736_DC3OUT_VOL
|
|
#define PMU1736_DCDC4 PMU1736_DC4OUT_VOL
|
|
#define PMU1736_DCDC5 PMU1736_DC5OUT_VOL
|
|
#define PMU1736_DCDC6 PMU1736_DC6OUT_VOL
|
|
#define PMU1736_RTC PMU1736_POWER_SOURCE
|
|
#define PMU1736_ALDO1 PMU1736_ALDO1OUT_VOL
|
|
#define PMU1736_ALDO2 PMU1736_ALDO2OUT_VOL
|
|
#define PMU1736_ALDO3 PMU1736_ALDO3OUT_VOL
|
|
#define PMU1736_ALDO4 PMU1736_ALDO4OUT_VOL
|
|
#define PMU1736_ALDO5 PMU1736_ALDO5OUT_VOL
|
|
#define PMU1736_BLDO1 PMU1736_BLDO1OUT_VOL
|
|
#define PMU1736_BLDO2 PMU1736_BLDO2OUT_VOL
|
|
#define PMU1736_BLDO3 PMU1736_BLDO3OUT_VOL
|
|
#define PMU1736_BLDO4 PMU1736_BLDO4OUT_VOL
|
|
#define PMU1736_BLDO5 PMU1736_BLDO5OUT_VOL
|
|
#define PMU1736_CLDO1 PMU1736_CLDO1OUT_VOL
|
|
#define PMU1736_CLDO2 PMU1736_CLDO2OUT_VOL
|
|
#define PMU1736_CLDO3 PMU1736_CLDO3OUT_VOL
|
|
#define PMU1736_CLDO4 PMU1736_CLDO4OUT_VOL
|
|
#define PMU1736_CPUS PMU1736_CPUSOUT_VOL
|
|
#define PMU1736_DC1SW PMU1736_DC1OUT_VOL
|
|
#define PMU1736_LDOIO1 PMU1736_CLDO3OUT_VOL
|
|
#define PMU1736_LDOIO2 PMU1736_CLDO4OUT_VOL
|
|
|
|
#define PMU1736_DCDC1EN PMU1736_ON_OFF_CTL1
|
|
#define PMU1736_DCDC2EN PMU1736_ON_OFF_CTL1
|
|
#define PMU1736_DCDC3EN PMU1736_ON_OFF_CTL1
|
|
#define PMU1736_DCDC4EN PMU1736_ON_OFF_CTL1
|
|
#define PMU1736_DCDC5EN PMU1736_ON_OFF_CTL1
|
|
#define PMU1736_DCDC6EN PMU1736_ON_OFF_CTL1
|
|
#define PMU1736_RTCLDOEN PMU1736_ON_OFF_CTL1
|
|
#define PMU1736_ALDO1EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_ALDO2EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_ALDO3EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_ALDO4EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_ALDO5EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_BLDO1EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_BLDO2EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_BLDO3EN PMU1736_ON_OFF_CTL2
|
|
#define PMU1736_BLDO4EN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_BLDO5EN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_CLDO1EN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_CLDO2EN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_CLDO3EN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_CLDO4EN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_CPUSLDOEN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_DC1SWEN PMU1736_ON_OFF_CTL3
|
|
#define PMU1736_LDOIO1EN PMU1736_CLDO3OUT_VOL
|
|
#define PMU1736_LDOIO2EN PMU1736_CLDO4_GPIO2_CTL
|
|
|
|
#endif /* PMU1736_REGU_H_ */
|