s5m8763.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* s5m8763.h
  2. *
  3. * Copyright (c) 2011 Samsung Electronics Co., Ltd
  4. * http://www.samsung.com
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. */
  12. #ifndef __LINUX_MFD_S5M8763_H
  13. #define __LINUX_MFD_S5M8763_H
  14. /* S5M8763 registers */
  15. enum s5m8763_reg {
  16. S5M8763_REG_IRQ1,
  17. S5M8763_REG_IRQ2,
  18. S5M8763_REG_IRQ3,
  19. S5M8763_REG_IRQ4,
  20. S5M8763_REG_IRQM1,
  21. S5M8763_REG_IRQM2,
  22. S5M8763_REG_IRQM3,
  23. S5M8763_REG_IRQM4,
  24. S5M8763_REG_STATUS1,
  25. S5M8763_REG_STATUS2,
  26. S5M8763_REG_STATUSM1,
  27. S5M8763_REG_STATUSM2,
  28. S5M8763_REG_CHGR1,
  29. S5M8763_REG_CHGR2,
  30. S5M8763_REG_LDO_ACTIVE_DISCHARGE1,
  31. S5M8763_REG_LDO_ACTIVE_DISCHARGE2,
  32. S5M8763_REG_BUCK_ACTIVE_DISCHARGE3,
  33. S5M8763_REG_ONOFF1,
  34. S5M8763_REG_ONOFF2,
  35. S5M8763_REG_ONOFF3,
  36. S5M8763_REG_ONOFF4,
  37. S5M8763_REG_BUCK1_VOLTAGE1,
  38. S5M8763_REG_BUCK1_VOLTAGE2,
  39. S5M8763_REG_BUCK1_VOLTAGE3,
  40. S5M8763_REG_BUCK1_VOLTAGE4,
  41. S5M8763_REG_BUCK2_VOLTAGE1,
  42. S5M8763_REG_BUCK2_VOLTAGE2,
  43. S5M8763_REG_BUCK3,
  44. S5M8763_REG_BUCK4,
  45. S5M8763_REG_LDO1_LDO2,
  46. S5M8763_REG_LDO3,
  47. S5M8763_REG_LDO4,
  48. S5M8763_REG_LDO5,
  49. S5M8763_REG_LDO6,
  50. S5M8763_REG_LDO7,
  51. S5M8763_REG_LDO7_LDO8,
  52. S5M8763_REG_LDO9_LDO10,
  53. S5M8763_REG_LDO11,
  54. S5M8763_REG_LDO12,
  55. S5M8763_REG_LDO13,
  56. S5M8763_REG_LDO14,
  57. S5M8763_REG_LDO15,
  58. S5M8763_REG_LDO16,
  59. S5M8763_REG_BKCHR,
  60. S5M8763_REG_LBCNFG1,
  61. S5M8763_REG_LBCNFG2,
  62. };
  63. /* S5M8763 regulator ids */
  64. enum s5m8763_regulators {
  65. S5M8763_LDO1,
  66. S5M8763_LDO2,
  67. S5M8763_LDO3,
  68. S5M8763_LDO4,
  69. S5M8763_LDO5,
  70. S5M8763_LDO6,
  71. S5M8763_LDO7,
  72. S5M8763_LDO8,
  73. S5M8763_LDO9,
  74. S5M8763_LDO10,
  75. S5M8763_LDO11,
  76. S5M8763_LDO12,
  77. S5M8763_LDO13,
  78. S5M8763_LDO14,
  79. S5M8763_LDO15,
  80. S5M8763_LDO16,
  81. S5M8763_BUCK1,
  82. S5M8763_BUCK2,
  83. S5M8763_BUCK3,
  84. S5M8763_BUCK4,
  85. S5M8763_AP_EN32KHZ,
  86. S5M8763_CP_EN32KHZ,
  87. S5M8763_ENCHGVI,
  88. S5M8763_ESAFEUSB1,
  89. S5M8763_ESAFEUSB2,
  90. };
  91. #define S5M8763_ENRAMP (1 << 4)
  92. #endif /* __LINUX_MFD_S5M8763_H */