act8865.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * act8865.h -- Voltage regulation for active-semi act88xx PMUs
  3. *
  4. * Copyright (C) 2013 Atmel Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef __LINUX_REGULATOR_ACT8865_H
  16. #define __LINUX_REGULATOR_ACT8865_H
  17. #include <linux/regulator/machine.h>
  18. enum {
  19. ACT8865_ID_DCDC1,
  20. ACT8865_ID_DCDC2,
  21. ACT8865_ID_DCDC3,
  22. ACT8865_ID_LDO1,
  23. ACT8865_ID_LDO2,
  24. ACT8865_ID_LDO3,
  25. ACT8865_ID_LDO4,
  26. ACT8865_REG_NUM,
  27. };
  28. enum {
  29. ACT8846_ID_REG1,
  30. ACT8846_ID_REG2,
  31. ACT8846_ID_REG3,
  32. ACT8846_ID_REG4,
  33. ACT8846_ID_REG5,
  34. ACT8846_ID_REG6,
  35. ACT8846_ID_REG7,
  36. ACT8846_ID_REG8,
  37. ACT8846_ID_REG9,
  38. ACT8846_ID_REG10,
  39. ACT8846_ID_REG11,
  40. ACT8846_ID_REG12,
  41. ACT8846_REG_NUM,
  42. };
  43. enum {
  44. ACT8865,
  45. ACT8846,
  46. };
  47. /**
  48. * act8865_regulator_data - regulator data
  49. * @id: regulator id
  50. * @name: regulator name
  51. * @platform_data: regulator init data
  52. */
  53. struct act8865_regulator_data {
  54. int id;
  55. const char *name;
  56. struct regulator_init_data *platform_data;
  57. };
  58. /**
  59. * act8865_platform_data - platform data for act8865
  60. * @num_regulators: number of regulators used
  61. * @regulators: pointer to regulators used
  62. */
  63. struct act8865_platform_data {
  64. int num_regulators;
  65. struct act8865_regulator_data *regulators;
  66. };
  67. #endif