tps62360.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * tps62360.h -- TI tps62360
  4. *
  5. * Interface for regulator driver for TI TPS62360 Processor core supply
  6. *
  7. * Copyright (C) 2012 NVIDIA Corporation
  8. * Author: Laxman Dewangan <ldewangan@nvidia.com>
  9. */
  10. #ifndef __LINUX_REGULATOR_TPS62360_H
  11. #define __LINUX_REGULATOR_TPS62360_H
  12. /*
  13. * struct tps62360_regulator_platform_data - tps62360 regulator platform data.
  14. *
  15. * @reg_init_data: The regulator init data.
  16. * @en_discharge: Enable discharge the output capacitor via internal
  17. * register.
  18. * @en_internal_pulldn: internal pull down enable or not.
  19. * @vsel0_gpio: Gpio number for vsel0. It should be -1 if this is tied with
  20. * fixed logic.
  21. * @vsel1_gpio: Gpio number for vsel1. It should be -1 if this is tied with
  22. * fixed logic.
  23. * @vsel0_def_state: Default state of vsel0. 1 if it is high else 0.
  24. * @vsel1_def_state: Default state of vsel1. 1 if it is high else 0.
  25. */
  26. struct tps62360_regulator_platform_data {
  27. struct regulator_init_data *reg_init_data;
  28. bool en_discharge;
  29. bool en_internal_pulldn;
  30. int vsel0_gpio;
  31. int vsel1_gpio;
  32. int vsel0_def_state;
  33. int vsel1_def_state;
  34. };
  35. #endif /* __LINUX_REGULATOR_TPS62360_H */