max77686.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * max77686.h - Driver for the Maxim 77686/802
  3. *
  4. * Copyright (C) 2012 Samsung Electrnoics
  5. * Chiwoong Byun <woong.byun@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. * This driver is based on max8997.h
  22. *
  23. * MAX77686 has PMIC, RTC devices.
  24. * The devices share the same I2C bus and included in
  25. * this mfd driver.
  26. */
  27. #ifndef __LINUX_MFD_MAX77686_H
  28. #define __LINUX_MFD_MAX77686_H
  29. #include <linux/regulator/consumer.h>
  30. /* MAX77686 regulator IDs */
  31. enum max77686_regulators {
  32. MAX77686_LDO1 = 0,
  33. MAX77686_LDO2,
  34. MAX77686_LDO3,
  35. MAX77686_LDO4,
  36. MAX77686_LDO5,
  37. MAX77686_LDO6,
  38. MAX77686_LDO7,
  39. MAX77686_LDO8,
  40. MAX77686_LDO9,
  41. MAX77686_LDO10,
  42. MAX77686_LDO11,
  43. MAX77686_LDO12,
  44. MAX77686_LDO13,
  45. MAX77686_LDO14,
  46. MAX77686_LDO15,
  47. MAX77686_LDO16,
  48. MAX77686_LDO17,
  49. MAX77686_LDO18,
  50. MAX77686_LDO19,
  51. MAX77686_LDO20,
  52. MAX77686_LDO21,
  53. MAX77686_LDO22,
  54. MAX77686_LDO23,
  55. MAX77686_LDO24,
  56. MAX77686_LDO25,
  57. MAX77686_LDO26,
  58. MAX77686_BUCK1,
  59. MAX77686_BUCK2,
  60. MAX77686_BUCK3,
  61. MAX77686_BUCK4,
  62. MAX77686_BUCK5,
  63. MAX77686_BUCK6,
  64. MAX77686_BUCK7,
  65. MAX77686_BUCK8,
  66. MAX77686_BUCK9,
  67. MAX77686_REG_MAX,
  68. };
  69. /* MAX77802 regulator IDs */
  70. enum max77802_regulators {
  71. MAX77802_BUCK1 = 0,
  72. MAX77802_BUCK2,
  73. MAX77802_BUCK3,
  74. MAX77802_BUCK4,
  75. MAX77802_BUCK5,
  76. MAX77802_BUCK6,
  77. MAX77802_BUCK7,
  78. MAX77802_BUCK8,
  79. MAX77802_BUCK9,
  80. MAX77802_BUCK10,
  81. MAX77802_LDO1,
  82. MAX77802_LDO2,
  83. MAX77802_LDO3,
  84. MAX77802_LDO4,
  85. MAX77802_LDO5,
  86. MAX77802_LDO6,
  87. MAX77802_LDO7,
  88. MAX77802_LDO8,
  89. MAX77802_LDO9,
  90. MAX77802_LDO10,
  91. MAX77802_LDO11,
  92. MAX77802_LDO12,
  93. MAX77802_LDO13,
  94. MAX77802_LDO14,
  95. MAX77802_LDO15,
  96. MAX77802_LDO17,
  97. MAX77802_LDO18,
  98. MAX77802_LDO19,
  99. MAX77802_LDO20,
  100. MAX77802_LDO21,
  101. MAX77802_LDO23,
  102. MAX77802_LDO24,
  103. MAX77802_LDO25,
  104. MAX77802_LDO26,
  105. MAX77802_LDO27,
  106. MAX77802_LDO28,
  107. MAX77802_LDO29,
  108. MAX77802_LDO30,
  109. MAX77802_LDO32,
  110. MAX77802_LDO33,
  111. MAX77802_LDO34,
  112. MAX77802_LDO35,
  113. MAX77802_REG_MAX,
  114. };
  115. enum max77686_opmode {
  116. MAX77686_OPMODE_NORMAL,
  117. MAX77686_OPMODE_LP,
  118. MAX77686_OPMODE_STANDBY,
  119. };
  120. #endif /* __LINUX_MFD_MAX77686_H */