tps51632-regulator.h 978 B

123456789101112131415161718192021222324252627282930313233
  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. * Author: Laxman Dewangan <[email protected]>
  10. */
  11. #ifndef __LINUX_REGULATOR_TPS51632_H
  12. #define __LINUX_REGULATOR_TPS51632_H
  13. /*
  14. * struct tps51632_regulator_platform_data - tps51632 regulator platform data.
  15. *
  16. * @reg_init_data: The regulator init data.
  17. * @enable_pwm_dvfs: Enable PWM DVFS or not.
  18. * @dvfs_step_20mV: Step for DVFS is 20mV or 10mV.
  19. * @max_voltage_uV: Maximum possible voltage in PWM-DVFS mode.
  20. * @base_voltage_uV: Base voltage when PWM-DVFS enabled.
  21. */
  22. struct tps51632_regulator_platform_data {
  23. struct regulator_init_data *reg_init_data;
  24. bool enable_pwm_dvfs;
  25. bool dvfs_step_20mV;
  26. int max_voltage_uV;
  27. int base_voltage_uV;
  28. };
  29. #endif /* __LINUX_REGULATOR_TPS51632_H */