lp3972.h 661 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * National Semiconductors LP3972 PMIC chip client interface
  4. *
  5. * Based on lp3971.h
  6. */
  7. #ifndef __LINUX_REGULATOR_LP3972_H
  8. #define __LINUX_REGULATOR_LP3972_H
  9. #include <linux/regulator/machine.h>
  10. #define LP3972_LDO1 0
  11. #define LP3972_LDO2 1
  12. #define LP3972_LDO3 2
  13. #define LP3972_LDO4 3
  14. #define LP3972_LDO5 4
  15. #define LP3972_DCDC1 5
  16. #define LP3972_DCDC2 6
  17. #define LP3972_DCDC3 7
  18. #define LP3972_NUM_REGULATORS 8
  19. struct lp3972_regulator_subdev {
  20. int id;
  21. struct regulator_init_data *initdata;
  22. };
  23. struct lp3972_platform_data {
  24. int num_regulators;
  25. struct lp3972_regulator_subdev *regulators;
  26. };
  27. #endif