Thomas Gleixner | 74ba920 | 2019-05-20 09:19:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Marek Szyprowski | 0cbdf7b | 2009-05-19 07:33:55 +0200 | [diff] [blame] | 2 | /* |
| 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 Szyprowski | 0cbdf7b | 2009-05-19 07:33:55 +0200 | [diff] [blame] | 9 | */ |
| 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 | |
| 28 | struct lp3971_regulator_subdev { |
| 29 | int id; |
| 30 | struct regulator_init_data *initdata; |
| 31 | }; |
| 32 | |
| 33 | struct lp3971_platform_data { |
| 34 | int num_regulators; |
| 35 | struct lp3971_regulator_subdev *regulators; |
| 36 | }; |
| 37 | |
| 38 | #endif |