Skip to content

Commit a74c52d

Browse files
Peter UjfalusiMike Turquette
authored andcommitted
clk: ti: clk-7xx: Correct ABE DPLL configuration
ABE DPLL frequency need to be lowered from 361267200 to 180633600 to facilitate the ATL requironments. The dpll_abe_m2x2_ck clock need to be set to double of ABE DPLL rate in order to have correct clocks for audio. Signed-off-by: Peter Ujfalusi <[email protected]> Acked-by: Tero Kristo <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
1 parent 64aa90f commit a74c52d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/clk/ti/clk-7xx.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <linux/clkdev.h>
1717
#include <linux/clk/ti.h>
1818

19-
#define DRA7_DPLL_ABE_DEFFREQ 361267200
19+
#define DRA7_DPLL_ABE_DEFFREQ 180633600
2020
#define DRA7_DPLL_GMAC_DEFFREQ 1000000000
2121

2222

@@ -322,6 +322,11 @@ int __init dra7xx_dt_clk_init(void)
322322
if (rc)
323323
pr_err("%s: failed to configure ABE DPLL!\n", __func__);
324324

325+
dpll_ck = clk_get_sys(NULL, "dpll_abe_m2x2_ck");
326+
rc = clk_set_rate(dpll_ck, DRA7_DPLL_ABE_DEFFREQ * 2);
327+
if (rc)
328+
pr_err("%s: failed to configure ABE DPLL m2x2!\n", __func__);
329+
325330
dpll_ck = clk_get_sys(NULL, "dpll_gmac_ck");
326331
rc = clk_set_rate(dpll_ck, DRA7_DPLL_GMAC_DEFFREQ);
327332
if (rc)

0 commit comments

Comments
 (0)