mt6311-regulator.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (c) 2015 MediaTek Inc.
  3. * Author: Henry Chen <henryc.chen@mediatek.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __MT6311_REGULATOR_H__
  15. #define __MT6311_REGULATOR_H__
  16. #define MT6311_SWCID 0x01
  17. #define MT6311_TOP_INT_CON 0x18
  18. #define MT6311_TOP_INT_MON 0x19
  19. #define MT6311_VDVFS11_CON0 0x87
  20. #define MT6311_VDVFS11_CON7 0x88
  21. #define MT6311_VDVFS11_CON8 0x89
  22. #define MT6311_VDVFS11_CON9 0x8A
  23. #define MT6311_VDVFS11_CON10 0x8B
  24. #define MT6311_VDVFS11_CON11 0x8C
  25. #define MT6311_VDVFS11_CON12 0x8D
  26. #define MT6311_VDVFS11_CON13 0x8E
  27. #define MT6311_VDVFS11_CON14 0x8F
  28. #define MT6311_VDVFS11_CON15 0x90
  29. #define MT6311_VDVFS11_CON16 0x91
  30. #define MT6311_VDVFS11_CON17 0x92
  31. #define MT6311_VDVFS11_CON18 0x93
  32. #define MT6311_VDVFS11_CON19 0x94
  33. #define MT6311_LDO_CON0 0xCC
  34. #define MT6311_LDO_OCFB0 0xCD
  35. #define MT6311_LDO_CON2 0xCE
  36. #define MT6311_LDO_CON3 0xCF
  37. #define MT6311_LDO_CON4 0xD0
  38. #define MT6311_FQMTR_CON0 0xD1
  39. #define MT6311_FQMTR_CON1 0xD2
  40. #define MT6311_FQMTR_CON2 0xD3
  41. #define MT6311_FQMTR_CON3 0xD4
  42. #define MT6311_FQMTR_CON4 0xD5
  43. #define MT6311_PMIC_RG_INT_POL_MASK 0x1
  44. #define MT6311_PMIC_RG_INT_EN_MASK 0x2
  45. #define MT6311_PMIC_RG_BUCK_OC_INT_STATUS_MASK 0x10
  46. #define MT6311_PMIC_VDVFS11_EN_CTRL_MASK 0x1
  47. #define MT6311_PMIC_VDVFS11_VOSEL_CTRL_MASK 0x2
  48. #define MT6311_PMIC_VDVFS11_EN_SEL_MASK 0x3
  49. #define MT6311_PMIC_VDVFS11_VOSEL_SEL_MASK 0xc
  50. #define MT6311_PMIC_VDVFS11_EN_MASK 0x1
  51. #define MT6311_PMIC_VDVFS11_VOSEL_MASK 0x7F
  52. #define MT6311_PMIC_VDVFS11_VOSEL_ON_MASK 0x7F
  53. #define MT6311_PMIC_VDVFS11_VOSEL_SLEEP_MASK 0x7F
  54. #define MT6311_PMIC_NI_VDVFS11_VOSEL_MASK 0x7F
  55. #define MT6311_PMIC_RG_VBIASN_EN_MASK 0x1
  56. #endif