blob: 0522e82d4716e3a1c1dfda96d7ef85d24390b864 [file] [log] [blame]
Thomas Gleixner74ba9202019-05-20 09:19:02 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Marek Szyprowski0cbdf7b2009-05-19 07:33:55 +02002/*
3 * National Semiconductors LP3971 PMIC chip client interface
4 *
5 * Copyright (C) 2009 Samsung Electronics
6 * Author: Marek Szyprowski <m.szyprowski@samsung.com>
7 *
8 * Based on wm8400.h
Marek Szyprowski0cbdf7b2009-05-19 07:33:55 +02009 */
10
11#ifndef __LINUX_REGULATOR_LP3971_H
12#define __LINUX_REGULATOR_LP3971_H
13
14#include <linux/regulator/machine.h>
15
16#define LP3971_LDO1 0
17#define LP3971_LDO2 1
18#define LP3971_LDO3 2
19#define LP3971_LDO4 3
20#define LP3971_LDO5 4
21
22#define LP3971_DCDC1 5
23#define LP3971_DCDC2 6
24#define LP3971_DCDC3 7
25
26#define LP3971_NUM_REGULATORS 8
27
28struct lp3971_regulator_subdev {
29 int id;
30 struct regulator_init_data *initdata;
31};
32
33struct lp3971_platform_data {
34 int num_regulators;
35 struct lp3971_regulator_subdev *regulators;
36};
37
38#endif