mt8173-afe-common.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * mt8173_afe_common.h -- Mediatek 8173 audio driver common definitions
  3. *
  4. * Copyright (c) 2015 MediaTek Inc.
  5. * Author: Koro Chen <[email protected]>
  6. * Sascha Hauer <[email protected]>
  7. * Hidalgo Huang <[email protected]>
  8. * Ir Lian <[email protected]>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 and
  12. * only version 2 as published by the Free Software Foundation.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. */
  19. #ifndef _MT8173_AFE_COMMON_H_
  20. #define _MT8173_AFE_COMMON_H_
  21. #include <linux/clk.h>
  22. #include <linux/regmap.h>
  23. enum {
  24. MT8173_AFE_MEMIF_DL1,
  25. MT8173_AFE_MEMIF_DL2,
  26. MT8173_AFE_MEMIF_VUL,
  27. MT8173_AFE_MEMIF_DAI,
  28. MT8173_AFE_MEMIF_AWB,
  29. MT8173_AFE_MEMIF_MOD_DAI,
  30. MT8173_AFE_MEMIF_HDMI,
  31. MT8173_AFE_MEMIF_NUM,
  32. MT8173_AFE_IO_MOD_PCM1 = MT8173_AFE_MEMIF_NUM,
  33. MT8173_AFE_IO_MOD_PCM2,
  34. MT8173_AFE_IO_PMIC,
  35. MT8173_AFE_IO_I2S,
  36. MT8173_AFE_IO_2ND_I2S,
  37. MT8173_AFE_IO_HW_GAIN1,
  38. MT8173_AFE_IO_HW_GAIN2,
  39. MT8173_AFE_IO_MRG_O,
  40. MT8173_AFE_IO_MRG_I,
  41. MT8173_AFE_IO_DAIBT,
  42. MT8173_AFE_IO_HDMI,
  43. };
  44. enum {
  45. MT8173_AFE_IRQ_DL1,
  46. MT8173_AFE_IRQ_DL2,
  47. MT8173_AFE_IRQ_VUL,
  48. MT8173_AFE_IRQ_DAI,
  49. MT8173_AFE_IRQ_AWB,
  50. MT8173_AFE_IRQ_MOD_DAI,
  51. MT8173_AFE_IRQ_HDMI,
  52. MT8173_AFE_IRQ_NUM,
  53. };
  54. enum {
  55. MT8173_CLK_INFRASYS_AUD,
  56. MT8173_CLK_TOP_PDN_AUD,
  57. MT8173_CLK_TOP_PDN_AUD_BUS,
  58. MT8173_CLK_I2S0_M,
  59. MT8173_CLK_I2S1_M,
  60. MT8173_CLK_I2S2_M,
  61. MT8173_CLK_I2S3_M,
  62. MT8173_CLK_I2S3_B,
  63. MT8173_CLK_BCK0,
  64. MT8173_CLK_BCK1,
  65. MT8173_CLK_NUM
  66. };
  67. #endif