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

TOMOYO Linux Cross Reference
Linux/sound/soc/mediatek/mt8192/mt8192-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/mt8192/mt8192-afe-clk.h (Architecture i386) and /sound/soc/mediatek/mt8192/mt8192-afe-clk.h (Architecture sparc)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * mt8192-afe-clk.h  --  Mediatek 8192 afe clo      3  * mt8192-afe-clk.h  --  Mediatek 8192 afe clock ctrl definition
  4  *                                                  4  *
  5  * Copyright (c) 2020 MediaTek Inc.                 5  * Copyright (c) 2020 MediaTek Inc.
  6  * Author: Shane Chien <shane.chien@mediatek.c      6  * Author: Shane Chien <shane.chien@mediatek.com>
  7  */                                                 7  */
  8                                                     8 
  9 #ifndef _MT8192_AFE_CLOCK_CTRL_H_                   9 #ifndef _MT8192_AFE_CLOCK_CTRL_H_
 10 #define _MT8192_AFE_CLOCK_CTRL_H_                  10 #define _MT8192_AFE_CLOCK_CTRL_H_
 11                                                    11 
 12 #define AP_PLL_CON3 0x0014                         12 #define AP_PLL_CON3 0x0014
 13 #define APLL1_CON0 0x0318                          13 #define APLL1_CON0 0x0318
 14 #define APLL1_CON1 0x031c                          14 #define APLL1_CON1 0x031c
 15 #define APLL1_CON2 0x0320                          15 #define APLL1_CON2 0x0320
 16 #define APLL1_CON4 0x0328                          16 #define APLL1_CON4 0x0328
 17 #define APLL1_TUNER_CON0 0x0040                    17 #define APLL1_TUNER_CON0 0x0040
 18                                                    18 
 19 #define APLL2_CON0 0x032c                          19 #define APLL2_CON0 0x032c
 20 #define APLL2_CON1 0x0330                          20 #define APLL2_CON1 0x0330
 21 #define APLL2_CON2 0x0334                          21 #define APLL2_CON2 0x0334
 22 #define APLL2_CON4 0x033c                          22 #define APLL2_CON4 0x033c
 23 #define APLL2_TUNER_CON0 0x0044                    23 #define APLL2_TUNER_CON0 0x0044
 24                                                    24 
 25 #define CLK_CFG_7 0x0080                           25 #define CLK_CFG_7 0x0080
 26 #define CLK_CFG_8 0x0090                           26 #define CLK_CFG_8 0x0090
 27 #define CLK_CFG_11 0x00c0                          27 #define CLK_CFG_11 0x00c0
 28 #define CLK_CFG_12 0x00d0                          28 #define CLK_CFG_12 0x00d0
 29 #define CLK_CFG_13 0x00e0                          29 #define CLK_CFG_13 0x00e0
 30 #define CLK_CFG_15 0x0100                          30 #define CLK_CFG_15 0x0100
 31                                                    31 
 32 #define CLK_AUDDIV_0 0x0320                        32 #define CLK_AUDDIV_0 0x0320
 33 #define CLK_AUDDIV_2 0x0328                        33 #define CLK_AUDDIV_2 0x0328
 34 #define CLK_AUDDIV_3 0x0334                        34 #define CLK_AUDDIV_3 0x0334
 35 #define CLK_AUDDIV_4 0x0338                        35 #define CLK_AUDDIV_4 0x0338
 36 #define CKSYS_AUD_TOP_CFG 0x032c                   36 #define CKSYS_AUD_TOP_CFG 0x032c
 37 #define CKSYS_AUD_TOP_MON 0x0330                   37 #define CKSYS_AUD_TOP_MON 0x0330
 38                                                    38 
 39 #define PERI_BUS_DCM_CTRL 0x0074                   39 #define PERI_BUS_DCM_CTRL 0x0074
 40 #define MODULE_SW_CG_1_STA 0x0094                  40 #define MODULE_SW_CG_1_STA 0x0094
 41 #define MODULE_SW_CG_2_STA 0x00ac                  41 #define MODULE_SW_CG_2_STA 0x00ac
 42                                                    42 
 43 /* CLK_AUDDIV_0 */                                 43 /* CLK_AUDDIV_0 */
 44 #define APLL12_DIV0_PDN_SFT                0       44 #define APLL12_DIV0_PDN_SFT                0
 45 #define APLL12_DIV0_PDN_MASK               0x1     45 #define APLL12_DIV0_PDN_MASK               0x1
 46 #define APLL12_DIV0_PDN_MASK_SFT           (0x     46 #define APLL12_DIV0_PDN_MASK_SFT           (0x1 << 0)
 47 #define APLL12_DIV1_PDN_SFT                1       47 #define APLL12_DIV1_PDN_SFT                1
 48 #define APLL12_DIV1_PDN_MASK               0x1     48 #define APLL12_DIV1_PDN_MASK               0x1
 49 #define APLL12_DIV1_PDN_MASK_SFT           (0x     49 #define APLL12_DIV1_PDN_MASK_SFT           (0x1 << 1)
 50 #define APLL12_DIV2_PDN_SFT                2       50 #define APLL12_DIV2_PDN_SFT                2
 51 #define APLL12_DIV2_PDN_MASK               0x1     51 #define APLL12_DIV2_PDN_MASK               0x1
 52 #define APLL12_DIV2_PDN_MASK_SFT           (0x     52 #define APLL12_DIV2_PDN_MASK_SFT           (0x1 << 2)
 53 #define APLL12_DIV3_PDN_SFT                3       53 #define APLL12_DIV3_PDN_SFT                3
 54 #define APLL12_DIV3_PDN_MASK               0x1     54 #define APLL12_DIV3_PDN_MASK               0x1
 55 #define APLL12_DIV3_PDN_MASK_SFT           (0x     55 #define APLL12_DIV3_PDN_MASK_SFT           (0x1 << 3)
 56 #define APLL12_DIV4_PDN_SFT                4       56 #define APLL12_DIV4_PDN_SFT                4
 57 #define APLL12_DIV4_PDN_MASK               0x1     57 #define APLL12_DIV4_PDN_MASK               0x1
 58 #define APLL12_DIV4_PDN_MASK_SFT           (0x     58 #define APLL12_DIV4_PDN_MASK_SFT           (0x1 << 4)
 59 #define APLL12_DIVB_PDN_SFT                5       59 #define APLL12_DIVB_PDN_SFT                5
 60 #define APLL12_DIVB_PDN_MASK               0x1     60 #define APLL12_DIVB_PDN_MASK               0x1
 61 #define APLL12_DIVB_PDN_MASK_SFT           (0x     61 #define APLL12_DIVB_PDN_MASK_SFT           (0x1 << 5)
 62 #define APLL12_DIV5_PDN_SFT                6       62 #define APLL12_DIV5_PDN_SFT                6
 63 #define APLL12_DIV5_PDN_MASK               0x1     63 #define APLL12_DIV5_PDN_MASK               0x1
 64 #define APLL12_DIV5_PDN_MASK_SFT           (0x     64 #define APLL12_DIV5_PDN_MASK_SFT           (0x1 << 6)
 65 #define APLL12_DIV6_PDN_SFT                7       65 #define APLL12_DIV6_PDN_SFT                7
 66 #define APLL12_DIV6_PDN_MASK               0x1     66 #define APLL12_DIV6_PDN_MASK               0x1
 67 #define APLL12_DIV6_PDN_MASK_SFT           (0x     67 #define APLL12_DIV6_PDN_MASK_SFT           (0x1 << 7)
 68 #define APLL12_DIV7_PDN_SFT                8       68 #define APLL12_DIV7_PDN_SFT                8
 69 #define APLL12_DIV7_PDN_MASK               0x1     69 #define APLL12_DIV7_PDN_MASK               0x1
 70 #define APLL12_DIV7_PDN_MASK_SFT           (0x     70 #define APLL12_DIV7_PDN_MASK_SFT           (0x1 << 8)
 71 #define APLL12_DIV8_PDN_SFT                9       71 #define APLL12_DIV8_PDN_SFT                9
 72 #define APLL12_DIV8_PDN_MASK               0x1     72 #define APLL12_DIV8_PDN_MASK               0x1
 73 #define APLL12_DIV8_PDN_MASK_SFT           (0x     73 #define APLL12_DIV8_PDN_MASK_SFT           (0x1 << 9)
 74 #define APLL12_DIV9_PDN_SFT                10      74 #define APLL12_DIV9_PDN_SFT                10
 75 #define APLL12_DIV9_PDN_MASK               0x1     75 #define APLL12_DIV9_PDN_MASK               0x1
 76 #define APLL12_DIV9_PDN_MASK_SFT           (0x     76 #define APLL12_DIV9_PDN_MASK_SFT           (0x1 << 10)
 77 #define APLL_I2S0_MCK_SEL_SFT              16      77 #define APLL_I2S0_MCK_SEL_SFT              16
 78 #define APLL_I2S0_MCK_SEL_MASK             0x1     78 #define APLL_I2S0_MCK_SEL_MASK             0x1
 79 #define APLL_I2S0_MCK_SEL_MASK_SFT         (0x     79 #define APLL_I2S0_MCK_SEL_MASK_SFT         (0x1 << 16)
 80 #define APLL_I2S1_MCK_SEL_SFT              17      80 #define APLL_I2S1_MCK_SEL_SFT              17
 81 #define APLL_I2S1_MCK_SEL_MASK             0x1     81 #define APLL_I2S1_MCK_SEL_MASK             0x1
 82 #define APLL_I2S1_MCK_SEL_MASK_SFT         (0x     82 #define APLL_I2S1_MCK_SEL_MASK_SFT         (0x1 << 17)
 83 #define APLL_I2S2_MCK_SEL_SFT              18      83 #define APLL_I2S2_MCK_SEL_SFT              18
 84 #define APLL_I2S2_MCK_SEL_MASK             0x1     84 #define APLL_I2S2_MCK_SEL_MASK             0x1
 85 #define APLL_I2S2_MCK_SEL_MASK_SFT         (0x     85 #define APLL_I2S2_MCK_SEL_MASK_SFT         (0x1 << 18)
 86 #define APLL_I2S3_MCK_SEL_SFT              19      86 #define APLL_I2S3_MCK_SEL_SFT              19
 87 #define APLL_I2S3_MCK_SEL_MASK             0x1     87 #define APLL_I2S3_MCK_SEL_MASK             0x1
 88 #define APLL_I2S3_MCK_SEL_MASK_SFT         (0x     88 #define APLL_I2S3_MCK_SEL_MASK_SFT         (0x1 << 19)
 89 #define APLL_I2S4_MCK_SEL_SFT              20      89 #define APLL_I2S4_MCK_SEL_SFT              20
 90 #define APLL_I2S4_MCK_SEL_MASK             0x1     90 #define APLL_I2S4_MCK_SEL_MASK             0x1
 91 #define APLL_I2S4_MCK_SEL_MASK_SFT         (0x     91 #define APLL_I2S4_MCK_SEL_MASK_SFT         (0x1 << 20)
 92 #define APLL_I2S5_MCK_SEL_SFT              21      92 #define APLL_I2S5_MCK_SEL_SFT              21
 93 #define APLL_I2S5_MCK_SEL_MASK             0x1     93 #define APLL_I2S5_MCK_SEL_MASK             0x1
 94 #define APLL_I2S5_MCK_SEL_MASK_SFT         (0x     94 #define APLL_I2S5_MCK_SEL_MASK_SFT         (0x1 << 21)
 95 #define APLL_I2S6_MCK_SEL_SFT              22      95 #define APLL_I2S6_MCK_SEL_SFT              22
 96 #define APLL_I2S6_MCK_SEL_MASK             0x1     96 #define APLL_I2S6_MCK_SEL_MASK             0x1
 97 #define APLL_I2S6_MCK_SEL_MASK_SFT         (0x     97 #define APLL_I2S6_MCK_SEL_MASK_SFT         (0x1 << 22)
 98 #define APLL_I2S7_MCK_SEL_SFT              23      98 #define APLL_I2S7_MCK_SEL_SFT              23
 99 #define APLL_I2S7_MCK_SEL_MASK             0x1     99 #define APLL_I2S7_MCK_SEL_MASK             0x1
100 #define APLL_I2S7_MCK_SEL_MASK_SFT         (0x    100 #define APLL_I2S7_MCK_SEL_MASK_SFT         (0x1 << 23)
101 #define APLL_I2S8_MCK_SEL_SFT              24     101 #define APLL_I2S8_MCK_SEL_SFT              24
102 #define APLL_I2S8_MCK_SEL_MASK             0x1    102 #define APLL_I2S8_MCK_SEL_MASK             0x1
103 #define APLL_I2S8_MCK_SEL_MASK_SFT         (0x    103 #define APLL_I2S8_MCK_SEL_MASK_SFT         (0x1 << 24)
104 #define APLL_I2S9_MCK_SEL_SFT              25     104 #define APLL_I2S9_MCK_SEL_SFT              25
105 #define APLL_I2S9_MCK_SEL_MASK             0x1    105 #define APLL_I2S9_MCK_SEL_MASK             0x1
106 #define APLL_I2S9_MCK_SEL_MASK_SFT         (0x    106 #define APLL_I2S9_MCK_SEL_MASK_SFT         (0x1 << 25)
107                                                   107 
108 /* CLK_AUDDIV_2 */                                108 /* CLK_AUDDIV_2 */
109 #define APLL12_CK_DIV0_SFT                 0      109 #define APLL12_CK_DIV0_SFT                 0
110 #define APLL12_CK_DIV0_MASK                0xf    110 #define APLL12_CK_DIV0_MASK                0xff
111 #define APLL12_CK_DIV0_MASK_SFT            (0x    111 #define APLL12_CK_DIV0_MASK_SFT            (0xff << 0)
112 #define APLL12_CK_DIV1_SFT                 8      112 #define APLL12_CK_DIV1_SFT                 8
113 #define APLL12_CK_DIV1_MASK                0xf    113 #define APLL12_CK_DIV1_MASK                0xff
114 #define APLL12_CK_DIV1_MASK_SFT            (0x    114 #define APLL12_CK_DIV1_MASK_SFT            (0xff << 8)
115 #define APLL12_CK_DIV2_SFT                 16     115 #define APLL12_CK_DIV2_SFT                 16
116 #define APLL12_CK_DIV2_MASK                0xf    116 #define APLL12_CK_DIV2_MASK                0xff
117 #define APLL12_CK_DIV2_MASK_SFT            (0x    117 #define APLL12_CK_DIV2_MASK_SFT            (0xff << 16)
118 #define APLL12_CK_DIV3_SFT                 24     118 #define APLL12_CK_DIV3_SFT                 24
119 #define APLL12_CK_DIV3_MASK                0xf    119 #define APLL12_CK_DIV3_MASK                0xff
120 #define APLL12_CK_DIV3_MASK_SFT            (0x    120 #define APLL12_CK_DIV3_MASK_SFT            (0xff << 24)
121                                                   121 
122 /* CLK_AUDDIV_3 */                                122 /* CLK_AUDDIV_3 */
123 #define APLL12_CK_DIV4_SFT                 0      123 #define APLL12_CK_DIV4_SFT                 0
124 #define APLL12_CK_DIV4_MASK                0xf    124 #define APLL12_CK_DIV4_MASK                0xff
125 #define APLL12_CK_DIV4_MASK_SFT            (0x    125 #define APLL12_CK_DIV4_MASK_SFT            (0xff << 0)
126 #define APLL12_CK_DIVB_SFT                 8      126 #define APLL12_CK_DIVB_SFT                 8
127 #define APLL12_CK_DIVB_MASK                0xf    127 #define APLL12_CK_DIVB_MASK                0xff
128 #define APLL12_CK_DIVB_MASK_SFT            (0x    128 #define APLL12_CK_DIVB_MASK_SFT            (0xff << 8)
129 #define APLL12_CK_DIV5_SFT                 16     129 #define APLL12_CK_DIV5_SFT                 16
130 #define APLL12_CK_DIV5_MASK                0xf    130 #define APLL12_CK_DIV5_MASK                0xff
131 #define APLL12_CK_DIV5_MASK_SFT            (0x    131 #define APLL12_CK_DIV5_MASK_SFT            (0xff << 16)
132 #define APLL12_CK_DIV6_SFT                 24     132 #define APLL12_CK_DIV6_SFT                 24
133 #define APLL12_CK_DIV6_MASK                0xf    133 #define APLL12_CK_DIV6_MASK                0xff
134 #define APLL12_CK_DIV6_MASK_SFT            (0x    134 #define APLL12_CK_DIV6_MASK_SFT            (0xff << 24)
135                                                   135 
136 /* CLK_AUDDIV_4 */                                136 /* CLK_AUDDIV_4 */
137 #define APLL12_CK_DIV7_SFT                 0      137 #define APLL12_CK_DIV7_SFT                 0
138 #define APLL12_CK_DIV7_MASK                0xf    138 #define APLL12_CK_DIV7_MASK                0xff
139 #define APLL12_CK_DIV7_MASK_SFT            (0x    139 #define APLL12_CK_DIV7_MASK_SFT            (0xff << 0)
140 #define APLL12_CK_DIV8_SFT                 8      140 #define APLL12_CK_DIV8_SFT                 8
141 #define APLL12_CK_DIV8_MASK                0xf    141 #define APLL12_CK_DIV8_MASK                0xff
142 #define APLL12_CK_DIV8_MASK_SFT            (0x    142 #define APLL12_CK_DIV8_MASK_SFT            (0xff << 0)
143 #define APLL12_CK_DIV9_SFT                 16     143 #define APLL12_CK_DIV9_SFT                 16
144 #define APLL12_CK_DIV9_MASK                0xf    144 #define APLL12_CK_DIV9_MASK                0xff
145 #define APLL12_CK_DIV9_MASK_SFT            (0x    145 #define APLL12_CK_DIV9_MASK_SFT            (0xff << 0)
146                                                   146 
147 /* AUD_TOP_CFG */                                 147 /* AUD_TOP_CFG */
148 #define AUD_TOP_CFG_SFT                    0      148 #define AUD_TOP_CFG_SFT                    0
149 #define AUD_TOP_CFG_MASK                   0xf    149 #define AUD_TOP_CFG_MASK                   0xffffffff
150 #define AUD_TOP_CFG_MASK_SFT               (0x    150 #define AUD_TOP_CFG_MASK_SFT               (0xffffffff << 0)
151                                                   151 
152 /* AUD_TOP_MON */                                 152 /* AUD_TOP_MON */
153 #define AUD_TOP_MON_SFT                    0      153 #define AUD_TOP_MON_SFT                    0
154 #define AUD_TOP_MON_MASK                   0xf    154 #define AUD_TOP_MON_MASK                   0xffffffff
155 #define AUD_TOP_MON_MASK_SFT               (0x    155 #define AUD_TOP_MON_MASK_SFT               (0xffffffff << 0)
156                                                   156 
157 /* CLK_AUDDIV_3 */                                157 /* CLK_AUDDIV_3 */
158 #define APLL12_CK_DIV5_MSB_SFT             0      158 #define APLL12_CK_DIV5_MSB_SFT             0
159 #define APLL12_CK_DIV5_MSB_MASK            0xf    159 #define APLL12_CK_DIV5_MSB_MASK            0xf
160 #define APLL12_CK_DIV5_MSB_MASK_SFT        (0x    160 #define APLL12_CK_DIV5_MSB_MASK_SFT        (0xf << 0)
161 #define RESERVED0_SFT                      4      161 #define RESERVED0_SFT                      4
162 #define RESERVED0_MASK                     0xf    162 #define RESERVED0_MASK                     0xfffffff
163 #define RESERVED0_MASK_SFT                 (0x    163 #define RESERVED0_MASK_SFT                 (0xfffffff << 4)
164                                                   164 
165 /* APLL */                                        165 /* APLL */
166 #define APLL1_W_NAME "APLL1"                      166 #define APLL1_W_NAME "APLL1"
167 #define APLL2_W_NAME "APLL2"                      167 #define APLL2_W_NAME "APLL2"
168 enum {                                            168 enum {
169         MT8192_APLL1 = 0,                         169         MT8192_APLL1 = 0,
170         MT8192_APLL2,                             170         MT8192_APLL2,
171 };                                                171 };
172                                                   172 
173 enum {                                            173 enum {
174         CLK_AFE = 0,                              174         CLK_AFE = 0,
175         CLK_TML,                                  175         CLK_TML,
176         CLK_APLL22M,                              176         CLK_APLL22M,
177         CLK_APLL24M,                              177         CLK_APLL24M,
178         CLK_APLL1_TUNER,                          178         CLK_APLL1_TUNER,
179         CLK_APLL2_TUNER,                          179         CLK_APLL2_TUNER,
180         CLK_NLE,                                  180         CLK_NLE,
181         CLK_INFRA_SYS_AUDIO,                      181         CLK_INFRA_SYS_AUDIO,
182         CLK_INFRA_AUDIO_26M,                      182         CLK_INFRA_AUDIO_26M,
183         CLK_MUX_AUDIO,                            183         CLK_MUX_AUDIO,
184         CLK_MUX_AUDIOINTBUS,                      184         CLK_MUX_AUDIOINTBUS,
185         CLK_TOP_MAINPLL_D4_D4,                    185         CLK_TOP_MAINPLL_D4_D4,
186         /* apll related mux */                    186         /* apll related mux */
187         CLK_TOP_MUX_AUD_1,                        187         CLK_TOP_MUX_AUD_1,
188         CLK_TOP_APLL1_CK,                         188         CLK_TOP_APLL1_CK,
189         CLK_TOP_MUX_AUD_2,                        189         CLK_TOP_MUX_AUD_2,
190         CLK_TOP_APLL2_CK,                         190         CLK_TOP_APLL2_CK,
191         CLK_TOP_MUX_AUD_ENG1,                     191         CLK_TOP_MUX_AUD_ENG1,
192         CLK_TOP_APLL1_D4,                         192         CLK_TOP_APLL1_D4,
193         CLK_TOP_MUX_AUD_ENG2,                     193         CLK_TOP_MUX_AUD_ENG2,
194         CLK_TOP_APLL2_D4,                         194         CLK_TOP_APLL2_D4,
195         CLK_TOP_MUX_AUDIO_H,                      195         CLK_TOP_MUX_AUDIO_H,
196         CLK_TOP_I2S0_M_SEL,                       196         CLK_TOP_I2S0_M_SEL,
197         CLK_TOP_I2S1_M_SEL,                       197         CLK_TOP_I2S1_M_SEL,
198         CLK_TOP_I2S2_M_SEL,                       198         CLK_TOP_I2S2_M_SEL,
199         CLK_TOP_I2S3_M_SEL,                       199         CLK_TOP_I2S3_M_SEL,
200         CLK_TOP_I2S4_M_SEL,                       200         CLK_TOP_I2S4_M_SEL,
201         CLK_TOP_I2S5_M_SEL,                       201         CLK_TOP_I2S5_M_SEL,
202         CLK_TOP_I2S6_M_SEL,                       202         CLK_TOP_I2S6_M_SEL,
203         CLK_TOP_I2S7_M_SEL,                       203         CLK_TOP_I2S7_M_SEL,
204         CLK_TOP_I2S8_M_SEL,                       204         CLK_TOP_I2S8_M_SEL,
205         CLK_TOP_I2S9_M_SEL,                       205         CLK_TOP_I2S9_M_SEL,
206         CLK_TOP_APLL12_DIV0,                      206         CLK_TOP_APLL12_DIV0,
207         CLK_TOP_APLL12_DIV1,                      207         CLK_TOP_APLL12_DIV1,
208         CLK_TOP_APLL12_DIV2,                      208         CLK_TOP_APLL12_DIV2,
209         CLK_TOP_APLL12_DIV3,                      209         CLK_TOP_APLL12_DIV3,
210         CLK_TOP_APLL12_DIV4,                      210         CLK_TOP_APLL12_DIV4,
211         CLK_TOP_APLL12_DIVB,                      211         CLK_TOP_APLL12_DIVB,
212         CLK_TOP_APLL12_DIV5,                      212         CLK_TOP_APLL12_DIV5,
213         CLK_TOP_APLL12_DIV6,                      213         CLK_TOP_APLL12_DIV6,
214         CLK_TOP_APLL12_DIV7,                      214         CLK_TOP_APLL12_DIV7,
215         CLK_TOP_APLL12_DIV8,                      215         CLK_TOP_APLL12_DIV8,
216         CLK_TOP_APLL12_DIV9,                      216         CLK_TOP_APLL12_DIV9,
217         CLK_CLK26M,                               217         CLK_CLK26M,
218         CLK_NUM                                   218         CLK_NUM
219 };                                                219 };
220                                                   220 
221 struct mtk_base_afe;                              221 struct mtk_base_afe;
222                                                   222 
223 int mt8192_init_clock(struct mtk_base_afe *afe    223 int mt8192_init_clock(struct mtk_base_afe *afe);
224 int mt8192_afe_enable_clock(struct mtk_base_af    224 int mt8192_afe_enable_clock(struct mtk_base_afe *afe);
225 void mt8192_afe_disable_clock(struct mtk_base_    225 void mt8192_afe_disable_clock(struct mtk_base_afe *afe);
226                                                   226 
227 int mt8192_apll1_enable(struct mtk_base_afe *a    227 int mt8192_apll1_enable(struct mtk_base_afe *afe);
228 void mt8192_apll1_disable(struct mtk_base_afe     228 void mt8192_apll1_disable(struct mtk_base_afe *afe);
229                                                   229 
230 int mt8192_apll2_enable(struct mtk_base_afe *a    230 int mt8192_apll2_enable(struct mtk_base_afe *afe);
231 void mt8192_apll2_disable(struct mtk_base_afe     231 void mt8192_apll2_disable(struct mtk_base_afe *afe);
232                                                   232 
233 int mt8192_get_apll_rate(struct mtk_base_afe *    233 int mt8192_get_apll_rate(struct mtk_base_afe *afe, int apll);
234 int mt8192_get_apll_by_rate(struct mtk_base_af    234 int mt8192_get_apll_by_rate(struct mtk_base_afe *afe, int rate);
235 int mt8192_get_apll_by_name(struct mtk_base_af    235 int mt8192_get_apll_by_name(struct mtk_base_afe *afe, const char *name);
236                                                   236 
237 /* these will be replaced by using CCF */         237 /* these will be replaced by using CCF */
238 int mt8192_mck_enable(struct mtk_base_afe *afe    238 int mt8192_mck_enable(struct mtk_base_afe *afe, int mck_id, int rate);
239 void mt8192_mck_disable(struct mtk_base_afe *a    239 void mt8192_mck_disable(struct mtk_base_afe *afe, int mck_id);
240                                                   240 
241 int mt8192_set_audio_int_bus_parent(struct mtk    241 int mt8192_set_audio_int_bus_parent(struct mtk_base_afe *afe,
242                                     int clk_id    242                                     int clk_id);
243                                                   243 
244 #endif                                            244 #endif
245                                                   245 

~ [ 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