s5m-pmic.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* s5m87xx.h
  2. *
  3. * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  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 version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __LINUX_MFD_S5M_PMIC_H
  11. #define __LINUX_MFD_S5M_PMIC_H
  12. #include <linux/regulator/machine.h>
  13. /* S5M8767 regulator ids */
  14. enum s5m8767_regulators {
  15. S5M8767_LDO1,
  16. S5M8767_LDO2,
  17. S5M8767_LDO3,
  18. S5M8767_LDO4,
  19. S5M8767_LDO5,
  20. S5M8767_LDO6,
  21. S5M8767_LDO7,
  22. S5M8767_LDO8,
  23. S5M8767_LDO9,
  24. S5M8767_LDO10,
  25. S5M8767_LDO11,
  26. S5M8767_LDO12,
  27. S5M8767_LDO13,
  28. S5M8767_LDO14,
  29. S5M8767_LDO15,
  30. S5M8767_LDO16,
  31. S5M8767_LDO17,
  32. S5M8767_LDO18,
  33. S5M8767_LDO19,
  34. S5M8767_LDO20,
  35. S5M8767_LDO21,
  36. S5M8767_LDO22,
  37. S5M8767_LDO23,
  38. S5M8767_LDO24,
  39. S5M8767_LDO25,
  40. S5M8767_LDO26,
  41. S5M8767_LDO27,
  42. S5M8767_LDO28,
  43. S5M8767_BUCK1,
  44. S5M8767_BUCK2,
  45. S5M8767_BUCK3,
  46. S5M8767_BUCK4,
  47. S5M8767_BUCK5,
  48. S5M8767_BUCK6,
  49. S5M8767_BUCK7,
  50. S5M8767_BUCK8,
  51. S5M8767_BUCK9,
  52. S5M8767_AP_EN32KHZ,
  53. S5M8767_CP_EN32KHZ,
  54. S5M8767_REG_MAX,
  55. };
  56. /* S5M8763 regulator ids */
  57. enum s5m8763_regulators {
  58. S5M8763_LDO1,
  59. S5M8763_LDO2,
  60. S5M8763_LDO3,
  61. S5M8763_LDO4,
  62. S5M8763_LDO5,
  63. S5M8763_LDO6,
  64. S5M8763_LDO7,
  65. S5M8763_LDO8,
  66. S5M8763_LDO9,
  67. S5M8763_LDO10,
  68. S5M8763_LDO11,
  69. S5M8763_LDO12,
  70. S5M8763_LDO13,
  71. S5M8763_LDO14,
  72. S5M8763_LDO15,
  73. S5M8763_LDO16,
  74. S5M8763_BUCK1,
  75. S5M8763_BUCK2,
  76. S5M8763_BUCK3,
  77. S5M8763_BUCK4,
  78. S5M8763_AP_EN32KHZ,
  79. S5M8763_CP_EN32KHZ,
  80. S5M8763_ENCHGVI,
  81. S5M8763_ESAFEUSB1,
  82. S5M8763_ESAFEUSB2,
  83. };
  84. /**
  85. * s5m87xx_regulator_data - regulator data
  86. * @id: regulator id
  87. * @initdata: regulator init data (contraints, supplies, ...)
  88. */
  89. struct s5m_regulator_data {
  90. int id;
  91. struct regulator_init_data *initdata;
  92. };
  93. #endif /* __LINUX_MFD_S5M_PMIC_H */