Merge branch 'topic/hotplug' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-max8997
Conflicts: drivers/regulator/max8997.c
This commit is contained in:
@@ -24,6 +24,25 @@
|
||||
|
||||
#include <linux/irq.h>
|
||||
|
||||
/* TPS65090 Regulator ID */
|
||||
enum {
|
||||
TPS65090_REGULATOR_DCDC1,
|
||||
TPS65090_REGULATOR_DCDC2,
|
||||
TPS65090_REGULATOR_DCDC3,
|
||||
TPS65090_REGULATOR_FET1,
|
||||
TPS65090_REGULATOR_FET2,
|
||||
TPS65090_REGULATOR_FET3,
|
||||
TPS65090_REGULATOR_FET4,
|
||||
TPS65090_REGULATOR_FET5,
|
||||
TPS65090_REGULATOR_FET6,
|
||||
TPS65090_REGULATOR_FET7,
|
||||
TPS65090_REGULATOR_LDO1,
|
||||
TPS65090_REGULATOR_LDO2,
|
||||
|
||||
/* Last entry for maximum ID */
|
||||
TPS65090_REGULATOR_MAX,
|
||||
};
|
||||
|
||||
struct tps65090 {
|
||||
struct mutex lock;
|
||||
struct device *dev;
|
||||
@@ -41,10 +60,26 @@ struct tps65090_subdev_info {
|
||||
void *platform_data;
|
||||
};
|
||||
|
||||
/*
|
||||
* struct tps65090_regulator_plat_data
|
||||
*
|
||||
* @reg_init_data: The regulator init data.
|
||||
* @enable_ext_control: Enable extrenal control or not. Only available for
|
||||
* DCDC1, DCDC2 and DCDC3.
|
||||
* @gpio: Gpio number if external control is enabled and controlled through
|
||||
* gpio.
|
||||
*/
|
||||
struct tps65090_regulator_plat_data {
|
||||
struct regulator_init_data *reg_init_data;
|
||||
bool enable_ext_control;
|
||||
int gpio;
|
||||
};
|
||||
|
||||
struct tps65090_platform_data {
|
||||
int irq_base;
|
||||
int num_subdevs;
|
||||
struct tps65090_subdev_info *subdevs;
|
||||
struct tps65090_regulator_plat_data *reg_pdata[TPS65090_REGULATOR_MAX];
|
||||
};
|
||||
|
||||
/*
|
||||
|
@@ -29,6 +29,7 @@ enum {
|
||||
TPS6586X_ID_LDO_8,
|
||||
TPS6586X_ID_LDO_9,
|
||||
TPS6586X_ID_LDO_RTC,
|
||||
TPS6586X_ID_MAX_REGULATOR,
|
||||
};
|
||||
|
||||
enum {
|
||||
@@ -79,6 +80,8 @@ struct tps6586x_platform_data {
|
||||
int gpio_base;
|
||||
int irq_base;
|
||||
bool pm_off;
|
||||
|
||||
struct regulator_init_data *reg_init_data[TPS6586X_ID_MAX_REGULATOR];
|
||||
};
|
||||
|
||||
/*
|
||||
|
@@ -181,6 +181,8 @@ enum regulator_type {
|
||||
* @type: Indicates if the regulator is a voltage or current regulator.
|
||||
* @owner: Module providing the regulator, used for refcounting.
|
||||
*
|
||||
* @continuous_voltage_range: Indicates if the regulator can set any
|
||||
* voltage within constrains range.
|
||||
* @n_voltages: Number of selectors available for ops.list_voltage().
|
||||
*
|
||||
* @min_uV: Voltage given by the lowest selector (if linear mapping)
|
||||
@@ -199,6 +201,7 @@ struct regulator_desc {
|
||||
const char *name;
|
||||
const char *supply_name;
|
||||
int id;
|
||||
bool continuous_voltage_range;
|
||||
unsigned n_voltages;
|
||||
struct regulator_ops *ops;
|
||||
int irq;
|
||||
|
47
include/linux/regulator/tps51632-regulator.h
Normal file
47
include/linux/regulator/tps51632-regulator.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* tps51632-regulator.h -- TPS51632 regulator
|
||||
*
|
||||
* Interface for regulator driver for TPS51632 3-2-1 Phase D-Cap Step Down
|
||||
* Driverless Controller with serial VID control and DVFS.
|
||||
*
|
||||
* Copyright (C) 2012 NVIDIA Corporation
|
||||
|
||||
* Author: Laxman Dewangan <ldewangan@nvidia.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_REGULATOR_TPS51632_H
|
||||
#define __LINUX_REGULATOR_TPS51632_H
|
||||
|
||||
/*
|
||||
* struct tps51632_regulator_platform_data - tps51632 regulator platform data.
|
||||
*
|
||||
* @reg_init_data: The regulator init data.
|
||||
* @enable_pwm_dvfs: Enable PWM DVFS or not.
|
||||
* @dvfs_step_20mV: Step for DVFS is 20mV or 10mV.
|
||||
* @max_voltage_uV: Maximum possible voltage in PWM-DVFS mode.
|
||||
* @base_voltage_uV: Base voltage when PWM-DVFS enabled.
|
||||
*/
|
||||
struct tps51632_regulator_platform_data {
|
||||
struct regulator_init_data *reg_init_data;
|
||||
bool enable_pwm_dvfs;
|
||||
bool dvfs_step_20mV;
|
||||
int max_voltage_uV;
|
||||
int base_voltage_uV;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_REGULATOR_TPS51632_H */
|
@@ -1,50 +0,0 @@
|
||||
/*
|
||||
* Regulator driver interface for TI TPS65090 PMIC family
|
||||
*
|
||||
* Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
|
||||
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __REGULATOR_TPS65090_H
|
||||
#define __REGULATOR_TPS65090_H
|
||||
|
||||
#include <linux/regulator/machine.h>
|
||||
|
||||
#define tps65090_rails(_name) "tps65090_"#_name
|
||||
|
||||
enum {
|
||||
TPS65090_ID_DCDC1,
|
||||
TPS65090_ID_DCDC2,
|
||||
TPS65090_ID_DCDC3,
|
||||
TPS65090_ID_FET1,
|
||||
TPS65090_ID_FET2,
|
||||
TPS65090_ID_FET3,
|
||||
TPS65090_ID_FET4,
|
||||
TPS65090_ID_FET5,
|
||||
TPS65090_ID_FET6,
|
||||
TPS65090_ID_FET7,
|
||||
};
|
||||
|
||||
/*
|
||||
* struct tps65090_regulator_platform_data
|
||||
*
|
||||
* @regulator: The regulator init data.
|
||||
* @slew_rate_uV_per_us: Slew rate microvolt per microsec.
|
||||
*/
|
||||
|
||||
struct tps65090_regulator_platform_data {
|
||||
struct regulator_init_data regulator;
|
||||
};
|
||||
|
||||
#endif /* __REGULATOR_TPS65090_H */
|
Reference in New Issue
Block a user