regulator: palma: add ramp delay support through regulator constraints
Currently Palma regulator driver support the ramp delay through rail specific platform data. As regulator framework support the configuration of ramp delay through regulator constraint, using the framework method and removing the platform specific data approach. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
17c11a7603
commit
28d1e8cd67
2 changed files with 79 additions and 28 deletions
|
@ -109,19 +109,6 @@ struct palmas_reg_init {
|
|||
*/
|
||||
int mode_sleep;
|
||||
|
||||
/* tstep is the timestep loaded to the TSTEP register
|
||||
*
|
||||
* For SMPS
|
||||
*
|
||||
* 0: Jump (no slope control)
|
||||
* 1: 10mV/us
|
||||
* 2: 5mV/us
|
||||
* 3: 2.5mV/us
|
||||
*
|
||||
* For LDO unused
|
||||
*/
|
||||
int tstep;
|
||||
|
||||
/* voltage_sel is the bitfield loaded onto the SMPSX_VOLTAGE
|
||||
* register. Set this is the default voltage set in OTP needs
|
||||
* to be overridden.
|
||||
|
@ -339,6 +326,7 @@ struct palmas_pmic {
|
|||
int smps457;
|
||||
|
||||
int range[PALMAS_REG_SMPS10];
|
||||
unsigned int ramp_delay[PALMAS_REG_SMPS10];
|
||||
};
|
||||
|
||||
struct palmas_resource {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue