Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * National Semiconductors LP3972 PMIC chip client interface
0004  *
0005  * Based on lp3971.h
0006  */
0007 
0008 #ifndef __LINUX_REGULATOR_LP3972_H
0009 #define __LINUX_REGULATOR_LP3972_H
0010 
0011 #include <linux/regulator/machine.h>
0012 
0013 #define LP3972_LDO1  0
0014 #define LP3972_LDO2  1
0015 #define LP3972_LDO3  2
0016 #define LP3972_LDO4  3
0017 #define LP3972_LDO5  4
0018 
0019 #define LP3972_DCDC1 5
0020 #define LP3972_DCDC2 6
0021 #define LP3972_DCDC3 7
0022 
0023 #define LP3972_NUM_REGULATORS 8
0024 
0025 struct lp3972_regulator_subdev {
0026     int id;
0027     struct regulator_init_data *initdata;
0028 };
0029 
0030 struct lp3972_platform_data {
0031     int num_regulators;
0032     struct lp3972_regulator_subdev *regulators;
0033 };
0034 
0035 #endif