tps68470.h 785 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * TI TPS68470 PMIC platform data definition.
  4. *
  5. * Copyright (c) 2021 Red Hat Inc.
  6. *
  7. * Red Hat authors:
  8. * Hans de Goede <[email protected]>
  9. */
  10. #ifndef __PDATA_TPS68470_H
  11. #define __PDATA_TPS68470_H
  12. enum tps68470_regulators {
  13. TPS68470_CORE,
  14. TPS68470_ANA,
  15. TPS68470_VCM,
  16. TPS68470_VIO,
  17. TPS68470_VSIO,
  18. TPS68470_AUX1,
  19. TPS68470_AUX2,
  20. TPS68470_NUM_REGULATORS
  21. };
  22. struct regulator_init_data;
  23. struct tps68470_regulator_platform_data {
  24. const struct regulator_init_data *reg_init_data[TPS68470_NUM_REGULATORS];
  25. };
  26. struct tps68470_clk_consumer {
  27. const char *consumer_dev_name;
  28. const char *consumer_con_id;
  29. };
  30. struct tps68470_clk_platform_data {
  31. unsigned int n_consumers;
  32. struct tps68470_clk_consumer consumers[];
  33. };
  34. #endif