~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/mediatek/mt8195/mt8195-afe-clk.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/mediatek/mt8195/mt8195-afe-clk.h (Architecture sparc64) and /sound/soc/mediatek/mt8195/mt8195-afe-clk.h (Architecture sparc)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * mt8195-afe-clk.h  --  Mediatek 8195 afe clo      3  * mt8195-afe-clk.h  --  Mediatek 8195 afe clock ctrl definition
  4  *                                                  4  *
  5  * Copyright (c) 2021 MediaTek Inc.                 5  * Copyright (c) 2021 MediaTek Inc.
  6  * Author: Bicycle Tsai <bicycle.tsai@mediatek      6  * Author: Bicycle Tsai <bicycle.tsai@mediatek.com>
  7  *         Trevor Wu <trevor.wu@mediatek.com>       7  *         Trevor Wu <trevor.wu@mediatek.com>
  8  */                                                 8  */
  9                                                     9 
 10 #ifndef _MT8195_AFE_CLK_H_                         10 #ifndef _MT8195_AFE_CLK_H_
 11 #define _MT8195_AFE_CLK_H_                         11 #define _MT8195_AFE_CLK_H_
 12                                                    12 
 13 enum {                                             13 enum {
 14         /* xtal */                                 14         /* xtal */
 15         MT8195_CLK_XTAL_26M,                       15         MT8195_CLK_XTAL_26M,
 16         /* divider */                              16         /* divider */
 17         MT8195_CLK_TOP_APLL1,                      17         MT8195_CLK_TOP_APLL1,
 18         MT8195_CLK_TOP_APLL2,                      18         MT8195_CLK_TOP_APLL2,
 19         MT8195_CLK_TOP_APLL12_DIV0,                19         MT8195_CLK_TOP_APLL12_DIV0,
 20         MT8195_CLK_TOP_APLL12_DIV1,                20         MT8195_CLK_TOP_APLL12_DIV1,
 21         MT8195_CLK_TOP_APLL12_DIV2,                21         MT8195_CLK_TOP_APLL12_DIV2,
 22         MT8195_CLK_TOP_APLL12_DIV3,                22         MT8195_CLK_TOP_APLL12_DIV3,
 23         MT8195_CLK_TOP_APLL12_DIV9,                23         MT8195_CLK_TOP_APLL12_DIV9,
 24         /* mux */                                  24         /* mux */
 25         MT8195_CLK_TOP_A1SYS_HP_SEL,               25         MT8195_CLK_TOP_A1SYS_HP_SEL,
 26         MT8195_CLK_TOP_AUD_INTBUS_SEL,             26         MT8195_CLK_TOP_AUD_INTBUS_SEL,
 27         MT8195_CLK_TOP_AUDIO_H_SEL,                27         MT8195_CLK_TOP_AUDIO_H_SEL,
 28         MT8195_CLK_TOP_AUDIO_LOCAL_BUS_SEL,        28         MT8195_CLK_TOP_AUDIO_LOCAL_BUS_SEL,
 29         MT8195_CLK_TOP_DPTX_M_SEL,                 29         MT8195_CLK_TOP_DPTX_M_SEL,
 30         MT8195_CLK_TOP_I2SO1_M_SEL,                30         MT8195_CLK_TOP_I2SO1_M_SEL,
 31         MT8195_CLK_TOP_I2SO2_M_SEL,                31         MT8195_CLK_TOP_I2SO2_M_SEL,
 32         MT8195_CLK_TOP_I2SI1_M_SEL,                32         MT8195_CLK_TOP_I2SI1_M_SEL,
 33         MT8195_CLK_TOP_I2SI2_M_SEL,                33         MT8195_CLK_TOP_I2SI2_M_SEL,
 34         /* clock gate */                           34         /* clock gate */
 35         MT8195_CLK_INFRA_AO_AUDIO_26M_B,           35         MT8195_CLK_INFRA_AO_AUDIO_26M_B,
 36         MT8195_CLK_SCP_ADSP_AUDIODSP,              36         MT8195_CLK_SCP_ADSP_AUDIODSP,
 37         MT8195_CLK_AUD_AFE,                        37         MT8195_CLK_AUD_AFE,
 38         MT8195_CLK_AUD_APLL1_TUNER,                38         MT8195_CLK_AUD_APLL1_TUNER,
 39         MT8195_CLK_AUD_APLL2_TUNER,                39         MT8195_CLK_AUD_APLL2_TUNER,
 40         MT8195_CLK_AUD_APLL,                       40         MT8195_CLK_AUD_APLL,
 41         MT8195_CLK_AUD_APLL2,                      41         MT8195_CLK_AUD_APLL2,
 42         MT8195_CLK_AUD_DAC,                        42         MT8195_CLK_AUD_DAC,
 43         MT8195_CLK_AUD_ADC,                        43         MT8195_CLK_AUD_ADC,
 44         MT8195_CLK_AUD_DAC_HIRES,                  44         MT8195_CLK_AUD_DAC_HIRES,
 45         MT8195_CLK_AUD_A1SYS_HP,                   45         MT8195_CLK_AUD_A1SYS_HP,
 46         MT8195_CLK_AUD_ADC_HIRES,                  46         MT8195_CLK_AUD_ADC_HIRES,
 47         MT8195_CLK_AUD_ADDA6_ADC,                  47         MT8195_CLK_AUD_ADDA6_ADC,
 48         MT8195_CLK_AUD_ADDA6_ADC_HIRES,            48         MT8195_CLK_AUD_ADDA6_ADC_HIRES,
 49         MT8195_CLK_AUD_I2SIN,                      49         MT8195_CLK_AUD_I2SIN,
 50         MT8195_CLK_AUD_TDM_IN,                     50         MT8195_CLK_AUD_TDM_IN,
 51         MT8195_CLK_AUD_I2S_OUT,                    51         MT8195_CLK_AUD_I2S_OUT,
 52         MT8195_CLK_AUD_TDM_OUT,                    52         MT8195_CLK_AUD_TDM_OUT,
 53         MT8195_CLK_AUD_HDMI_OUT,                   53         MT8195_CLK_AUD_HDMI_OUT,
 54         MT8195_CLK_AUD_ASRC11,                     54         MT8195_CLK_AUD_ASRC11,
 55         MT8195_CLK_AUD_ASRC12,                     55         MT8195_CLK_AUD_ASRC12,
 56         MT8195_CLK_AUD_A1SYS,                      56         MT8195_CLK_AUD_A1SYS,
 57         MT8195_CLK_AUD_A2SYS,                      57         MT8195_CLK_AUD_A2SYS,
 58         MT8195_CLK_AUD_PCMIF,                      58         MT8195_CLK_AUD_PCMIF,
 59         MT8195_CLK_AUD_MEMIF_UL1,                  59         MT8195_CLK_AUD_MEMIF_UL1,
 60         MT8195_CLK_AUD_MEMIF_UL2,                  60         MT8195_CLK_AUD_MEMIF_UL2,
 61         MT8195_CLK_AUD_MEMIF_UL3,                  61         MT8195_CLK_AUD_MEMIF_UL3,
 62         MT8195_CLK_AUD_MEMIF_UL4,                  62         MT8195_CLK_AUD_MEMIF_UL4,
 63         MT8195_CLK_AUD_MEMIF_UL5,                  63         MT8195_CLK_AUD_MEMIF_UL5,
 64         MT8195_CLK_AUD_MEMIF_UL6,                  64         MT8195_CLK_AUD_MEMIF_UL6,
 65         MT8195_CLK_AUD_MEMIF_UL8,                  65         MT8195_CLK_AUD_MEMIF_UL8,
 66         MT8195_CLK_AUD_MEMIF_UL9,                  66         MT8195_CLK_AUD_MEMIF_UL9,
 67         MT8195_CLK_AUD_MEMIF_UL10,                 67         MT8195_CLK_AUD_MEMIF_UL10,
 68         MT8195_CLK_AUD_MEMIF_DL2,                  68         MT8195_CLK_AUD_MEMIF_DL2,
 69         MT8195_CLK_AUD_MEMIF_DL3,                  69         MT8195_CLK_AUD_MEMIF_DL3,
 70         MT8195_CLK_AUD_MEMIF_DL6,                  70         MT8195_CLK_AUD_MEMIF_DL6,
 71         MT8195_CLK_AUD_MEMIF_DL7,                  71         MT8195_CLK_AUD_MEMIF_DL7,
 72         MT8195_CLK_AUD_MEMIF_DL8,                  72         MT8195_CLK_AUD_MEMIF_DL8,
 73         MT8195_CLK_AUD_MEMIF_DL10,                 73         MT8195_CLK_AUD_MEMIF_DL10,
 74         MT8195_CLK_AUD_MEMIF_DL11,                 74         MT8195_CLK_AUD_MEMIF_DL11,
 75         MT8195_CLK_NUM,                            75         MT8195_CLK_NUM,
 76 };                                                 76 };
 77                                                    77 
 78 enum {                                             78 enum {
 79         MT8195_MCK_SEL_26M,                        79         MT8195_MCK_SEL_26M,
 80         MT8195_MCK_SEL_APLL1,                      80         MT8195_MCK_SEL_APLL1,
 81         MT8195_MCK_SEL_APLL2,                      81         MT8195_MCK_SEL_APLL2,
 82         MT8195_MCK_SEL_APLL3,                      82         MT8195_MCK_SEL_APLL3,
 83         MT8195_MCK_SEL_APLL4,                      83         MT8195_MCK_SEL_APLL4,
 84         MT8195_MCK_SEL_APLL5,                      84         MT8195_MCK_SEL_APLL5,
 85         MT8195_MCK_SEL_HDMIRX_APLL,                85         MT8195_MCK_SEL_HDMIRX_APLL,
 86         MT8195_MCK_SEL_NUM,                        86         MT8195_MCK_SEL_NUM,
 87 };                                                 87 };
 88                                                    88 
 89 enum {                                             89 enum {
 90         MT8195_AUD_PLL1,                           90         MT8195_AUD_PLL1,
 91         MT8195_AUD_PLL2,                           91         MT8195_AUD_PLL2,
 92         MT8195_AUD_PLL3,                           92         MT8195_AUD_PLL3,
 93         MT8195_AUD_PLL4,                           93         MT8195_AUD_PLL4,
 94         MT8195_AUD_PLL5,                           94         MT8195_AUD_PLL5,
 95         MT8195_AUD_PLL_NUM,                        95         MT8195_AUD_PLL_NUM,
 96 };                                                 96 };
 97                                                    97 
 98 struct mtk_base_afe;                               98 struct mtk_base_afe;
 99                                                    99 
100 int mt8195_afe_get_mclk_source_clk_id(int sel)    100 int mt8195_afe_get_mclk_source_clk_id(int sel);
101 int mt8195_afe_get_mclk_source_rate(struct mtk    101 int mt8195_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
102 int mt8195_afe_get_default_mclk_source_by_rate    102 int mt8195_afe_get_default_mclk_source_by_rate(int rate);
103 int mt8195_afe_init_clock(struct mtk_base_afe     103 int mt8195_afe_init_clock(struct mtk_base_afe *afe);
104 int mt8195_afe_enable_clk(struct mtk_base_afe     104 int mt8195_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk);
105 void mt8195_afe_disable_clk(struct mtk_base_af    105 void mt8195_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk);
106 int mt8195_afe_prepare_clk(struct mtk_base_afe    106 int mt8195_afe_prepare_clk(struct mtk_base_afe *afe, struct clk *clk);
107 void mt8195_afe_unprepare_clk(struct mtk_base_    107 void mt8195_afe_unprepare_clk(struct mtk_base_afe *afe, struct clk *clk);
108 int mt8195_afe_enable_clk_atomic(struct mtk_ba    108 int mt8195_afe_enable_clk_atomic(struct mtk_base_afe *afe, struct clk *clk);
109 void mt8195_afe_disable_clk_atomic(struct mtk_    109 void mt8195_afe_disable_clk_atomic(struct mtk_base_afe *afe, struct clk *clk);
110 int mt8195_afe_set_clk_rate(struct mtk_base_af    110 int mt8195_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk,
111                             unsigned int rate)    111                             unsigned int rate);
112 int mt8195_afe_set_clk_parent(struct mtk_base_    112 int mt8195_afe_set_clk_parent(struct mtk_base_afe *afe, struct clk *clk,
113                               struct clk *pare    113                               struct clk *parent);
114 int mt8195_afe_enable_main_clock(struct mtk_ba    114 int mt8195_afe_enable_main_clock(struct mtk_base_afe *afe);
115 int mt8195_afe_disable_main_clock(struct mtk_b    115 int mt8195_afe_disable_main_clock(struct mtk_base_afe *afe);
116 int mt8195_afe_enable_reg_rw_clk(struct mtk_ba    116 int mt8195_afe_enable_reg_rw_clk(struct mtk_base_afe *afe);
117 int mt8195_afe_disable_reg_rw_clk(struct mtk_b    117 int mt8195_afe_disable_reg_rw_clk(struct mtk_base_afe *afe);
118                                                   118 
119 #endif                                            119 #endif
120                                                   120 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php