blob: 160a3def317f56419b46cdac9218efa9a917d313 [file] [log] [blame]
Thomas Gleixner74ba9202019-05-20 09:19:02 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Axel Lin5976f092010-09-16 16:48:49 +08002/*
3 * National Semiconductors LP3972 PMIC chip client interface
4 *
5 * Based on lp3971.h
Axel Lin5976f092010-09-16 16:48:49 +08006 */
7
8#ifndef __LINUX_REGULATOR_LP3972_H
9#define __LINUX_REGULATOR_LP3972_H
10
11#include <linux/regulator/machine.h>
12
13#define LP3972_LDO1 0
14#define LP3972_LDO2 1
15#define LP3972_LDO3 2
16#define LP3972_LDO4 3
17#define LP3972_LDO5 4
18
19#define LP3972_DCDC1 5
20#define LP3972_DCDC2 6
21#define LP3972_DCDC3 7
22
23#define LP3972_NUM_REGULATORS 8
24
25struct lp3972_regulator_subdev {
26 int id;
27 struct regulator_init_data *initdata;
28};
29
30struct lp3972_platform_data {
31 int num_regulators;
32 struct lp3972_regulator_subdev *regulators;
33};
34
35#endif