mt6391.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef __MT6391_H__
  13. #define __MT6391_H__
  14. /* digital pmic register definition */
  15. #define MT6397_DIG_AUDIO_BASE (0x4000)
  16. #define MT6397_AFE_UL_DL_CON0 (MT6397_DIG_AUDIO_BASE + 0x0000)
  17. #define MT6397_AFE_DL_SRC2_CON0_H (MT6397_DIG_AUDIO_BASE + 0x0002)
  18. #define MT6397_AFE_DL_SRC2_CON0_L (MT6397_DIG_AUDIO_BASE + 0x0004)
  19. #define MT6397_AFE_DL_SDM_CON0 (MT6397_DIG_AUDIO_BASE + 0x0006)
  20. #define MT6397_AFE_DL_SDM_CON1 (MT6397_DIG_AUDIO_BASE + 0x0008)
  21. #define MT6397_AFE_UL_SRC_CON0_H (MT6397_DIG_AUDIO_BASE + 0x000A)
  22. #define MT6397_AFE_UL_SRC_CON0_L (MT6397_DIG_AUDIO_BASE + 0x000C)
  23. #define MT6397_AFE_UL_SRC_CON1_H (MT6397_DIG_AUDIO_BASE + 0x000E)
  24. #define MT6397_AFE_UL_SRC_CON1_L (MT6397_DIG_AUDIO_BASE + 0x0010)
  25. #define MT6397_ANA_AFE_TOP_CON0 (MT6397_DIG_AUDIO_BASE + 0x0012)
  26. #define MT6397_ANA_AUDIO_TOP_CON0 (MT6397_DIG_AUDIO_BASE + 0x0014)
  27. #define MT6397_AFE_DL_SRC_MON0 (MT6397_DIG_AUDIO_BASE + 0x0016)
  28. #define MT6397_AFE_DL_SDM_TEST0 (MT6397_DIG_AUDIO_BASE + 0x0018)
  29. #define MT6397_AFE_MON_DEBUG0 (MT6397_DIG_AUDIO_BASE + 0x001A)
  30. #define MT6397_AFUNC_AUD_CON0 (MT6397_DIG_AUDIO_BASE + 0x001C)
  31. #define MT6397_AFUNC_AUD_CON1 (MT6397_DIG_AUDIO_BASE + 0x001E)
  32. #define MT6397_AFUNC_AUD_CON2 (MT6397_DIG_AUDIO_BASE + 0x0020)
  33. #define MT6397_AFUNC_AUD_CON3 (MT6397_DIG_AUDIO_BASE + 0x0022)
  34. #define MT6397_AFUNC_AUD_CON4 (MT6397_DIG_AUDIO_BASE + 0x0024)
  35. #define MT6397_AFUNC_AUD_MON0 (MT6397_DIG_AUDIO_BASE + 0x0026)
  36. #define MT6397_AFUNC_AUD_MON1 (MT6397_DIG_AUDIO_BASE + 0x0028)
  37. #define MT6397_AUDRC_TUNE_MON0 (MT6397_DIG_AUDIO_BASE + 0x002A)
  38. #define MT6397_AFE_UP8X_FIFO_CFG0 (MT6397_DIG_AUDIO_BASE + 0x002C)
  39. #define MT6397_AFE_UP8X_FIFO_LOG_MON0 (MT6397_DIG_AUDIO_BASE + 0x002E)
  40. #define MT6397_AFE_UP8X_FIFO_LOG_MON1 (MT6397_DIG_AUDIO_BASE + 0x0030)
  41. #define MT6397_AFE_DL_DC_COMP_CFG0 (MT6397_DIG_AUDIO_BASE + 0x0032)
  42. #define MT6397_AFE_DL_DC_COMP_CFG1 (MT6397_DIG_AUDIO_BASE + 0x0034)
  43. #define MT6397_AFE_DL_DC_COMP_CFG2 (MT6397_DIG_AUDIO_BASE + 0x0036)
  44. #define MT6397_AFE_PMIC_NEWIF_CFG0 (MT6397_DIG_AUDIO_BASE + 0x0038)
  45. #define MT6397_AFE_PMIC_NEWIF_CFG1 (MT6397_DIG_AUDIO_BASE + 0x003A)
  46. #define MT6397_AFE_PMIC_NEWIF_CFG2 (MT6397_DIG_AUDIO_BASE + 0x003C)
  47. #define MT6397_AFE_PMIC_NEWIF_CFG3 (MT6397_DIG_AUDIO_BASE + 0x003E)
  48. #define MT6397_AFE_SGEN_CFG0 (MT6397_DIG_AUDIO_BASE + 0x0040)
  49. #define MT6397_AFE_SGEN_CFG1 (MT6397_DIG_AUDIO_BASE + 0x0042)
  50. #endif