|
18 | 18 |
|
19 | 19 | #define CLKEN0 0x000
|
20 | 20 | #define CLKEN1 0x004
|
21 |
| -#define SAI_MCLK_SEL(n) (0x300 + 4 * (n)) /* n in 0..5 */ |
| 21 | +#define SAI1_MCLK_SEL 0x300 |
| 22 | +#define SAI2_MCLK_SEL 0x304 |
| 23 | +#define SAI3_MCLK_SEL 0x308 |
| 24 | +#define SAI5_MCLK_SEL 0x30C |
| 25 | +#define SAI6_MCLK_SEL 0x310 |
| 26 | +#define SAI7_MCLK_SEL 0x314 |
22 | 27 | #define PDM_SEL 0x318
|
23 | 28 | #define SAI_PLL_GNRL_CTL 0x400
|
24 | 29 |
|
@@ -95,13 +100,13 @@ static const struct clk_parent_data clk_imx8mp_audiomix_pll_bypass_sels[] = {
|
95 | 100 | IMX8MP_CLK_AUDIOMIX_SAI##n##_MCLK1_SEL, {}, \
|
96 | 101 | clk_imx8mp_audiomix_sai##n##_mclk1_parents, \
|
97 | 102 | ARRAY_SIZE(clk_imx8mp_audiomix_sai##n##_mclk1_parents), \
|
98 |
| - SAI_MCLK_SEL(n), 1, 0 \ |
| 103 | + SAI##n##_MCLK_SEL, 1, 0 \ |
99 | 104 | }, { \
|
100 | 105 | "sai"__stringify(n)"_mclk2_sel", \
|
101 | 106 | IMX8MP_CLK_AUDIOMIX_SAI##n##_MCLK2_SEL, {}, \
|
102 | 107 | clk_imx8mp_audiomix_sai_mclk2_parents, \
|
103 | 108 | ARRAY_SIZE(clk_imx8mp_audiomix_sai_mclk2_parents), \
|
104 |
| - SAI_MCLK_SEL(n), 4, 1 \ |
| 109 | + SAI##n##_MCLK_SEL, 4, 1 \ |
105 | 110 | }, { \
|
106 | 111 | "sai"__stringify(n)"_ipg_cg", \
|
107 | 112 | IMX8MP_CLK_AUDIOMIX_SAI##n##_IPG, \
|
|
0 commit comments