pmic.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef __LINUX_MFD_PCF50633_PMIC_H
  2. #define __LINUX_MFD_PCF50633_PMIC_H
  3. #include <linux/mfd/pcf50633/core.h>
  4. #include <linux/platform_device.h>
  5. #define PCF50633_REG_AUTOOUT 0x1a
  6. #define PCF50633_REG_AUTOENA 0x1b
  7. #define PCF50633_REG_AUTOCTL 0x1c
  8. #define PCF50633_REG_AUTOMXC 0x1d
  9. #define PCF50633_REG_DOWN1OUT 0x1e
  10. #define PCF50633_REG_DOWN1ENA 0x1f
  11. #define PCF50633_REG_DOWN1CTL 0x20
  12. #define PCF50633_REG_DOWN1MXC 0x21
  13. #define PCF50633_REG_DOWN2OUT 0x22
  14. #define PCF50633_REG_DOWN2ENA 0x23
  15. #define PCF50633_REG_DOWN2CTL 0x24
  16. #define PCF50633_REG_DOWN2MXC 0x25
  17. #define PCF50633_REG_MEMLDOOUT 0x26
  18. #define PCF50633_REG_MEMLDOENA 0x27
  19. #define PCF50633_REG_LDO1OUT 0x2d
  20. #define PCF50633_REG_LDO1ENA 0x2e
  21. #define PCF50633_REG_LDO2OUT 0x2f
  22. #define PCF50633_REG_LDO2ENA 0x30
  23. #define PCF50633_REG_LDO3OUT 0x31
  24. #define PCF50633_REG_LDO3ENA 0x32
  25. #define PCF50633_REG_LDO4OUT 0x33
  26. #define PCF50633_REG_LDO4ENA 0x34
  27. #define PCF50633_REG_LDO5OUT 0x35
  28. #define PCF50633_REG_LDO5ENA 0x36
  29. #define PCF50633_REG_LDO6OUT 0x37
  30. #define PCF50633_REG_LDO6ENA 0x38
  31. #define PCF50633_REG_HCLDOOUT 0x39
  32. #define PCF50633_REG_HCLDOENA 0x3a
  33. #define PCF50633_REG_HCLDOOVL 0x40
  34. enum pcf50633_regulator_enable {
  35. PCF50633_REGULATOR_ON = 0x01,
  36. PCF50633_REGULATOR_ON_GPIO1 = 0x02,
  37. PCF50633_REGULATOR_ON_GPIO2 = 0x04,
  38. PCF50633_REGULATOR_ON_GPIO3 = 0x08,
  39. };
  40. #define PCF50633_REGULATOR_ON_MASK 0x0f
  41. enum pcf50633_regulator_phase {
  42. PCF50633_REGULATOR_ACTPH1 = 0x00,
  43. PCF50633_REGULATOR_ACTPH2 = 0x10,
  44. PCF50633_REGULATOR_ACTPH3 = 0x20,
  45. PCF50633_REGULATOR_ACTPH4 = 0x30,
  46. };
  47. #define PCF50633_REGULATOR_ACTPH_MASK 0x30
  48. enum pcf50633_regulator_id {
  49. PCF50633_REGULATOR_AUTO,
  50. PCF50633_REGULATOR_DOWN1,
  51. PCF50633_REGULATOR_DOWN2,
  52. PCF50633_REGULATOR_LDO1,
  53. PCF50633_REGULATOR_LDO2,
  54. PCF50633_REGULATOR_LDO3,
  55. PCF50633_REGULATOR_LDO4,
  56. PCF50633_REGULATOR_LDO5,
  57. PCF50633_REGULATOR_LDO6,
  58. PCF50633_REGULATOR_HCLDO,
  59. PCF50633_REGULATOR_MEMLDO,
  60. };
  61. #endif