mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 22:16:39 +07:00
0c57067430
The TPS51632 is a driverless step down controller with serial control. Advanced features such as D-Cap+ architecture with overlapping pulse support and OSR overshoot reduction provide fast transient response, lowest output capacitance and high efficiency. The TPS51632 supports both I2C and DVFS interfaces (through PWM) for dynamic control of the output voltage and current monitor telemetry. Add regulator driver for TPS51632. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
/*
|
|
* 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 */
|