lp3971.h (763B)
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 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 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 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