1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * tps51632-regulator.h -- TPS51632 regulator 4 * 5 * Interface for regulator driver for TPS51632 3-2-1 Phase D-Cap Step Down 6 * Driverless Controller with serial VID control and DVFS. 7 * 8 * Copyright (C) 2012 NVIDIA Corporation 9 10 * Author: Laxman Dewangan <ldewangan@nvidia.com> 11 */ 12 13 #ifndef __LINUX_REGULATOR_TPS51632_H 14 #define __LINUX_REGULATOR_TPS51632_H 15 16 /* 17 * struct tps51632_regulator_platform_data - tps51632 regulator platform data. 18 * 19 * @reg_init_data: The regulator init data. 20 * @enable_pwm_dvfs: Enable PWM DVFS or not. 21 * @dvfs_step_20mV: Step for DVFS is 20mV or 10mV. 22 * @max_voltage_uV: Maximum possible voltage in PWM-DVFS mode. 23 * @base_voltage_uV: Base voltage when PWM-DVFS enabled. 24 */ 25 struct tps51632_regulator_platform_data { 26 struct regulator_init_data *reg_init_data; 27 bool enable_pwm_dvfs; 28 bool dvfs_step_20mV; 29 int max_voltage_uV; 30 int base_voltage_uV; 31 }; 32 33 #endif /* __LINUX_REGULATOR_TPS51632_H */ 34