1 /*
2  * mt8173_afe_common.h  --  Mediatek 8173 audio driver common definitions
3  *
4  * Copyright (c) 2015 MediaTek Inc.
5  * Author: Koro Chen <koro.chen@mediatek.com>
6  *             Sascha Hauer <s.hauer@pengutronix.de>
7  *             Hidalgo Huang <hidalgo.huang@mediatek.com>
8  *             Ir Lian <ir.lian@mediatek.com>
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 
20 #ifndef _MT8173_AFE_COMMON_H_
21 #define _MT8173_AFE_COMMON_H_
22 
23 #include <linux/clk.h>
24 #include <linux/regmap.h>
25 
26 enum {
27 	MT8173_AFE_MEMIF_DL1,
28 	MT8173_AFE_MEMIF_DL2,
29 	MT8173_AFE_MEMIF_VUL,
30 	MT8173_AFE_MEMIF_DAI,
31 	MT8173_AFE_MEMIF_AWB,
32 	MT8173_AFE_MEMIF_MOD_DAI,
33 	MT8173_AFE_MEMIF_HDMI,
34 	MT8173_AFE_MEMIF_NUM,
35 	MT8173_AFE_IO_MOD_PCM1 = MT8173_AFE_MEMIF_NUM,
36 	MT8173_AFE_IO_MOD_PCM2,
37 	MT8173_AFE_IO_PMIC,
38 	MT8173_AFE_IO_I2S,
39 	MT8173_AFE_IO_2ND_I2S,
40 	MT8173_AFE_IO_HW_GAIN1,
41 	MT8173_AFE_IO_HW_GAIN2,
42 	MT8173_AFE_IO_MRG_O,
43 	MT8173_AFE_IO_MRG_I,
44 	MT8173_AFE_IO_DAIBT,
45 	MT8173_AFE_IO_HDMI,
46 };
47 
48 enum {
49 	MT8173_AFE_IRQ_DL1,
50 	MT8173_AFE_IRQ_DL2,
51 	MT8173_AFE_IRQ_VUL,
52 	MT8173_AFE_IRQ_DAI,
53 	MT8173_AFE_IRQ_AWB,
54 	MT8173_AFE_IRQ_MOD_DAI,
55 	MT8173_AFE_IRQ_HDMI,
56 	MT8173_AFE_IRQ_NUM,
57 };
58 
59 enum {
60 	MT8173_CLK_INFRASYS_AUD,
61 	MT8173_CLK_TOP_PDN_AUD,
62 	MT8173_CLK_TOP_PDN_AUD_BUS,
63 	MT8173_CLK_I2S0_M,
64 	MT8173_CLK_I2S1_M,
65 	MT8173_CLK_I2S2_M,
66 	MT8173_CLK_I2S3_M,
67 	MT8173_CLK_I2S3_B,
68 	MT8173_CLK_BCK0,
69 	MT8173_CLK_BCK1,
70 	MT8173_CLK_NUM
71 };
72 
73 #endif
74