History

clk: at91: allow setting PMC_AUDIOPINCK clock parents via DT

Make AUDIOPINCK accessible via phandle to select it as peripheral clock parent using assigned-clock-parents in DT where available.

Zixun LI committed 4 years ago

Commit ea2be221 parent e7833622 files · +4 −1Browse files

Unified · Split

2 files
  1. drivers/clk/at91/sama5d2.c +3 −1
  2. include/dt-bindings/clock/at91.h +1 −0
drivers/clk/at91/sama5d2.c+3−1
@@ -168,7 +168,7 @@ static void __init sama5d2_pmc_setup(struct device_node *np) · 167 unmodified lines
168168 if (IS_ERR(regmap))
169169 return;
170170
171− sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPLLCK + 1,
171+ sama5d2_pmc = pmc_data_allocate(PMC_AUDIOPINCK + 1,
172172 nck(sama5d2_systemck),
173173 nck(sama5d2_periph32ck),
174174 nck(sama5d2_gck), 3);
@@ -216,6 +216,8 @@ static void __init sama5d2_pmc_setup(struct device_node *np) · 41 unmodified lines
216216 if (IS_ERR(hw))
217217 goto err_free;
218218
219+ sama5d2_pmc->chws[PMC_AUDIOPINCK] = hw;
220+
219221 hw = at91_clk_register_audio_pll_pmc(regmap, "audiopll_pmcck",
220222 "audiopll_fracck");
221223 if (IS_ERR(hw))
include/dt-bindings/clock/at91.h+1−0
@@ -24,6 +24,7 @@ · 23 unmodified lines
2424 #define PMC_PLLACK 7
2525 #define PMC_PLLBCK 8
2626 #define PMC_AUDIOPLLCK 9
27+#define PMC_AUDIOPINCK 10
2728
2829 /* SAMA7G5 */
2930 #define PMC_CPUPLL (PMC_MAIN + 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t