Make AUDIOPINCK accessible via phandle to select it as peripheral clock parent using assigned-clock-parents in DT where available.
Unified · Split
| @@ -168,7 +168,7 @@ static void __init sama5d2_pmc_setup(struct device_node *np) · 167 unmodified lines | ||
| 168 | 168 | if (IS_ERR(regmap)) |
| 169 | 169 | return; |
| 170 | 170 | |
| 171 | − sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPLLCK + 1, | |
| 171 | + sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPINCK + 1, | |
| 172 | 172 | nck(sama5d2_systemck), |
| 173 | 173 | nck(sama5d2_periph32ck), |
| 174 | 174 | nck(sama5d2_gck), 3); |
| @@ -216,6 +216,8 @@ static void __init sama5d2_pmc_setup(struct device_node *np) · 41 unmodified lines | ||
| 216 | 216 | if (IS_ERR(hw)) |
| 217 | 217 | goto err_free; |
| 218 | 218 | |
| 219 | + sama5d2_pmc->chws[PMC_AUDIOPINCK] = hw; | |
| 220 | + | |
| 219 | 221 | hw = at91_clk_register_audio_pll_pmc(regmap, "audiopll_pmcck", |
| 220 | 222 | "audiopll_fracck"); |
| 221 | 223 | if (IS_ERR(hw)) |
| @@ -24,6 +24,7 @@ · 23 unmodified lines | ||
| 24 | 24 | #define PMC_PLLACK 7 |
| 25 | 25 | #define PMC_PLLBCK 8 |
| 26 | 26 | #define PMC_AUDIOPLLCK 9 |
| 27 | +#define PMC_AUDIOPINCK 10 | |
| 27 | 28 | |
| 28 | 29 | /* SAMA7G5 */ |
| 29 | 30 | #define PMC_CPUPLL (PMC_MAIN + 1) |