tps51632-regulator.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * tps51632-regulator.h -- TPS51632 regulator
  3. *
  4. * Interface for regulator driver for TPS51632 3-2-1 Phase D-Cap Step Down
  5. * Driverless Controller with serial VID control and DVFS.
  6. *
  7. * Copyright (C) 2012 NVIDIA Corporation
  8. * Author: Laxman Dewangan <ldewangan@nvidia.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful, but WITHOUT
  16. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  17. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  18. * more details.
  19. *
  20. * You should have received a copy of the GNU General Public License along
  21. * with this program; if not, write to the Free Software Foundation, Inc.,
  22. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23. *
  24. */
  25. #ifndef __LINUX_REGULATOR_TPS51632_H
  26. #define __LINUX_REGULATOR_TPS51632_H
  27. /*
  28. * struct tps51632_regulator_platform_data - tps51632 regulator platform data.
  29. *
  30. * @reg_init_data: The regulator init data.
  31. * @enable_pwm_dvfs: Enable PWM DVFS or not.
  32. * @dvfs_step_20mV: Step for DVFS is 20mV or 10mV.
  33. * @max_voltage_uV: Maximum possible voltage in PWM-DVFS mode.
  34. * @base_voltage_uV: Base voltage when PWM-DVFS enabled.
  35. */
  36. struct tps51632_regulator_platform_data {
  37. struct regulator_init_data *reg_init_data;
  38. bool enable_pwm_dvfs;
  39. bool dvfs_step_20mV;
  40. int max_voltage_uV;
  41. int base_voltage_uV;
  42. };
  43. #endif /* __LINUX_REGULATOR_TPS51632_H */