@@ -47,8 +47,6 @@ static const char * const dram_pll_bypass_sels[] = {"dram_pll", "dram_pll_ref_se
47
47
static const char * const gpu_pll_bypass_sels [] = {"gpu_pll" , "gpu_pll_ref_sel" , };
48
48
static const char * const vpu_pll_bypass_sels [] = {"vpu_pll" , "vpu_pll_ref_sel" , };
49
49
static const char * const arm_pll_bypass_sels [] = {"arm_pll" , "arm_pll_ref_sel" , };
50
- static const char * const sys_pll1_bypass_sels [] = {"sys_pll1" , "sys_pll1_ref_sel" , };
51
- static const char * const sys_pll2_bypass_sels [] = {"sys_pll2" , "sys_pll2_ref_sel" , };
52
50
static const char * const sys_pll3_bypass_sels [] = {"sys_pll3" , "sys_pll3_ref_sel" , };
53
51
54
52
static const char * const imx8mn_a53_sels [] = {"osc_24m" , "arm_pll_out" , "sys_pll2_500m" ,
@@ -336,8 +334,6 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
336
334
clks [IMX8MN_GPU_PLL_REF_SEL ] = imx_clk_mux ("gpu_pll_ref_sel" , base + 0x64 , 0 , 2 , pll_ref_sels , ARRAY_SIZE (pll_ref_sels ));
337
335
clks [IMX8MN_VPU_PLL_REF_SEL ] = imx_clk_mux ("vpu_pll_ref_sel" , base + 0x74 , 0 , 2 , pll_ref_sels , ARRAY_SIZE (pll_ref_sels ));
338
336
clks [IMX8MN_ARM_PLL_REF_SEL ] = imx_clk_mux ("arm_pll_ref_sel" , base + 0x84 , 0 , 2 , pll_ref_sels , ARRAY_SIZE (pll_ref_sels ));
339
- clks [IMX8MN_SYS_PLL1_REF_SEL ] = imx_clk_mux ("sys_pll1_ref_sel" , base + 0x94 , 0 , 2 , pll_ref_sels , ARRAY_SIZE (pll_ref_sels ));
340
- clks [IMX8MN_SYS_PLL2_REF_SEL ] = imx_clk_mux ("sys_pll2_ref_sel" , base + 0x104 , 0 , 2 , pll_ref_sels , ARRAY_SIZE (pll_ref_sels ));
341
337
clks [IMX8MN_SYS_PLL3_REF_SEL ] = imx_clk_mux ("sys_pll3_ref_sel" , base + 0x114 , 0 , 2 , pll_ref_sels , ARRAY_SIZE (pll_ref_sels ));
342
338
343
339
clks [IMX8MN_AUDIO_PLL1 ] = imx_clk_pll14xx ("audio_pll1" , "audio_pll1_ref_sel" , base , & imx_1443x_pll );
@@ -347,8 +343,8 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
347
343
clks [IMX8MN_GPU_PLL ] = imx_clk_pll14xx ("gpu_pll" , "gpu_pll_ref_sel" , base + 0x64 , & imx_1416x_pll );
348
344
clks [IMX8MN_VPU_PLL ] = imx_clk_pll14xx ("vpu_pll" , "vpu_pll_ref_sel" , base + 0x74 , & imx_1416x_pll );
349
345
clks [IMX8MN_ARM_PLL ] = imx_clk_pll14xx ("arm_pll" , "arm_pll_ref_sel" , base + 0x84 , & imx_1416x_pll );
350
- clks [IMX8MN_SYS_PLL1 ] = imx_clk_pll14xx ("sys_pll1" , "sys_pll1_ref_sel" , base + 0x94 , & imx_1416x_pll );
351
- clks [IMX8MN_SYS_PLL2 ] = imx_clk_pll14xx ("sys_pll2" , "sys_pll2_ref_sel" , base + 0x104 , & imx_1416x_pll );
346
+ clks [IMX8MN_SYS_PLL1 ] = imx_clk_fixed ("sys_pll1" , 800000000 );
347
+ clks [IMX8MN_SYS_PLL2 ] = imx_clk_fixed ("sys_pll2" , 1000000000 );
352
348
clks [IMX8MN_SYS_PLL3 ] = imx_clk_pll14xx ("sys_pll3" , "sys_pll3_ref_sel" , base + 0x114 , & imx_1416x_pll );
353
349
354
350
/* PLL bypass out */
@@ -359,8 +355,6 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
359
355
clks [IMX8MN_GPU_PLL_BYPASS ] = imx_clk_mux_flags ("gpu_pll_bypass" , base + 0x64 , 28 , 1 , gpu_pll_bypass_sels , ARRAY_SIZE (gpu_pll_bypass_sels ), CLK_SET_RATE_PARENT );
360
356
clks [IMX8MN_VPU_PLL_BYPASS ] = imx_clk_mux_flags ("vpu_pll_bypass" , base + 0x74 , 28 , 1 , vpu_pll_bypass_sels , ARRAY_SIZE (vpu_pll_bypass_sels ), CLK_SET_RATE_PARENT );
361
357
clks [IMX8MN_ARM_PLL_BYPASS ] = imx_clk_mux_flags ("arm_pll_bypass" , base + 0x84 , 28 , 1 , arm_pll_bypass_sels , ARRAY_SIZE (arm_pll_bypass_sels ), CLK_SET_RATE_PARENT );
362
- clks [IMX8MN_SYS_PLL1_BYPASS ] = imx_clk_mux_flags ("sys_pll1_bypass" , base + 0x94 , 28 , 1 , sys_pll1_bypass_sels , ARRAY_SIZE (sys_pll1_bypass_sels ), CLK_SET_RATE_PARENT );
363
- clks [IMX8MN_SYS_PLL2_BYPASS ] = imx_clk_mux_flags ("sys_pll2_bypass" , base + 0x104 , 28 , 1 , sys_pll2_bypass_sels , ARRAY_SIZE (sys_pll2_bypass_sels ), CLK_SET_RATE_PARENT );
364
358
clks [IMX8MN_SYS_PLL3_BYPASS ] = imx_clk_mux_flags ("sys_pll3_bypass" , base + 0x114 , 28 , 1 , sys_pll3_bypass_sels , ARRAY_SIZE (sys_pll3_bypass_sels ), CLK_SET_RATE_PARENT );
365
359
366
360
/* PLL out gate */
@@ -374,15 +368,15 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
374
368
clks [IMX8MN_SYS_PLL3_OUT ] = imx_clk_gate ("sys_pll3_out" , "sys_pll3_bypass" , base + 0x114 , 11 );
375
369
376
370
/* SYS PLL1 fixed output */
377
- clks [IMX8MN_SYS_PLL1_40M_CG ] = imx_clk_gate ("sys_pll1_40m_cg" , "sys_pll1_bypass " , base + 0x94 , 27 );
378
- clks [IMX8MN_SYS_PLL1_80M_CG ] = imx_clk_gate ("sys_pll1_80m_cg" , "sys_pll1_bypass " , base + 0x94 , 25 );
379
- clks [IMX8MN_SYS_PLL1_100M_CG ] = imx_clk_gate ("sys_pll1_100m_cg" , "sys_pll1_bypass " , base + 0x94 , 23 );
380
- clks [IMX8MN_SYS_PLL1_133M_CG ] = imx_clk_gate ("sys_pll1_133m_cg" , "sys_pll1_bypass " , base + 0x94 , 21 );
381
- clks [IMX8MN_SYS_PLL1_160M_CG ] = imx_clk_gate ("sys_pll1_160m_cg" , "sys_pll1_bypass " , base + 0x94 , 19 );
382
- clks [IMX8MN_SYS_PLL1_200M_CG ] = imx_clk_gate ("sys_pll1_200m_cg" , "sys_pll1_bypass " , base + 0x94 , 17 );
383
- clks [IMX8MN_SYS_PLL1_266M_CG ] = imx_clk_gate ("sys_pll1_266m_cg" , "sys_pll1_bypass " , base + 0x94 , 15 );
384
- clks [IMX8MN_SYS_PLL1_400M_CG ] = imx_clk_gate ("sys_pll1_400m_cg" , "sys_pll1_bypass " , base + 0x94 , 13 );
385
- clks [IMX8MN_SYS_PLL1_OUT ] = imx_clk_gate ("sys_pll1_out" , "sys_pll1_bypass " , base + 0x94 , 11 );
371
+ clks [IMX8MN_SYS_PLL1_40M_CG ] = imx_clk_gate ("sys_pll1_40m_cg" , "sys_pll1 " , base + 0x94 , 27 );
372
+ clks [IMX8MN_SYS_PLL1_80M_CG ] = imx_clk_gate ("sys_pll1_80m_cg" , "sys_pll1 " , base + 0x94 , 25 );
373
+ clks [IMX8MN_SYS_PLL1_100M_CG ] = imx_clk_gate ("sys_pll1_100m_cg" , "sys_pll1 " , base + 0x94 , 23 );
374
+ clks [IMX8MN_SYS_PLL1_133M_CG ] = imx_clk_gate ("sys_pll1_133m_cg" , "sys_pll1 " , base + 0x94 , 21 );
375
+ clks [IMX8MN_SYS_PLL1_160M_CG ] = imx_clk_gate ("sys_pll1_160m_cg" , "sys_pll1 " , base + 0x94 , 19 );
376
+ clks [IMX8MN_SYS_PLL1_200M_CG ] = imx_clk_gate ("sys_pll1_200m_cg" , "sys_pll1 " , base + 0x94 , 17 );
377
+ clks [IMX8MN_SYS_PLL1_266M_CG ] = imx_clk_gate ("sys_pll1_266m_cg" , "sys_pll1 " , base + 0x94 , 15 );
378
+ clks [IMX8MN_SYS_PLL1_400M_CG ] = imx_clk_gate ("sys_pll1_400m_cg" , "sys_pll1 " , base + 0x94 , 13 );
379
+ clks [IMX8MN_SYS_PLL1_OUT ] = imx_clk_gate ("sys_pll1_out" , "sys_pll1 " , base + 0x94 , 11 );
386
380
387
381
clks [IMX8MN_SYS_PLL1_40M ] = imx_clk_fixed_factor ("sys_pll1_40m" , "sys_pll1_40m_cg" , 1 , 20 );
388
382
clks [IMX8MN_SYS_PLL1_80M ] = imx_clk_fixed_factor ("sys_pll1_80m" , "sys_pll1_80m_cg" , 1 , 10 );
@@ -395,15 +389,15 @@ static int imx8mn_clocks_probe(struct platform_device *pdev)
395
389
clks [IMX8MN_SYS_PLL1_800M ] = imx_clk_fixed_factor ("sys_pll1_800m" , "sys_pll1_out" , 1 , 1 );
396
390
397
391
/* SYS PLL2 fixed output */
398
- clks [IMX8MN_SYS_PLL2_50M_CG ] = imx_clk_gate ("sys_pll2_50m_cg" , "sys_pll2_bypass " , base + 0x104 , 27 );
399
- clks [IMX8MN_SYS_PLL2_100M_CG ] = imx_clk_gate ("sys_pll2_100m_cg" , "sys_pll2_bypass " , base + 0x104 , 25 );
400
- clks [IMX8MN_SYS_PLL2_125M_CG ] = imx_clk_gate ("sys_pll2_125m_cg" , "sys_pll2_bypass " , base + 0x104 , 23 );
401
- clks [IMX8MN_SYS_PLL2_166M_CG ] = imx_clk_gate ("sys_pll2_166m_cg" , "sys_pll2_bypass " , base + 0x104 , 21 );
402
- clks [IMX8MN_SYS_PLL2_200M_CG ] = imx_clk_gate ("sys_pll2_200m_cg" , "sys_pll2_bypass " , base + 0x104 , 19 );
403
- clks [IMX8MN_SYS_PLL2_250M_CG ] = imx_clk_gate ("sys_pll2_250m_cg" , "sys_pll2_bypass " , base + 0x104 , 17 );
404
- clks [IMX8MN_SYS_PLL2_333M_CG ] = imx_clk_gate ("sys_pll2_333m_cg" , "sys_pll2_bypass " , base + 0x104 , 15 );
405
- clks [IMX8MN_SYS_PLL2_500M_CG ] = imx_clk_gate ("sys_pll2_500m_cg" , "sys_pll2_bypass " , base + 0x104 , 13 );
406
- clks [IMX8MN_SYS_PLL2_OUT ] = imx_clk_gate ("sys_pll2_out" , "sys_pll2_bypass " , base + 0x104 , 11 );
392
+ clks [IMX8MN_SYS_PLL2_50M_CG ] = imx_clk_gate ("sys_pll2_50m_cg" , "sys_pll2 " , base + 0x104 , 27 );
393
+ clks [IMX8MN_SYS_PLL2_100M_CG ] = imx_clk_gate ("sys_pll2_100m_cg" , "sys_pll2 " , base + 0x104 , 25 );
394
+ clks [IMX8MN_SYS_PLL2_125M_CG ] = imx_clk_gate ("sys_pll2_125m_cg" , "sys_pll2 " , base + 0x104 , 23 );
395
+ clks [IMX8MN_SYS_PLL2_166M_CG ] = imx_clk_gate ("sys_pll2_166m_cg" , "sys_pll2 " , base + 0x104 , 21 );
396
+ clks [IMX8MN_SYS_PLL2_200M_CG ] = imx_clk_gate ("sys_pll2_200m_cg" , "sys_pll2 " , base + 0x104 , 19 );
397
+ clks [IMX8MN_SYS_PLL2_250M_CG ] = imx_clk_gate ("sys_pll2_250m_cg" , "sys_pll2 " , base + 0x104 , 17 );
398
+ clks [IMX8MN_SYS_PLL2_333M_CG ] = imx_clk_gate ("sys_pll2_333m_cg" , "sys_pll2 " , base + 0x104 , 15 );
399
+ clks [IMX8MN_SYS_PLL2_500M_CG ] = imx_clk_gate ("sys_pll2_500m_cg" , "sys_pll2 " , base + 0x104 , 13 );
400
+ clks [IMX8MN_SYS_PLL2_OUT ] = imx_clk_gate ("sys_pll2_out" , "sys_pll2 " , base + 0x104 , 11 );
407
401
408
402
clks [IMX8MN_SYS_PLL2_50M ] = imx_clk_fixed_factor ("sys_pll2_50m" , "sys_pll2_50m_cg" , 1 , 20 );
409
403
clks [IMX8MN_SYS_PLL2_100M ] = imx_clk_fixed_factor ("sys_pll2_100m" , "sys_pll2_100m_cg" , 1 , 10 );
0 commit comments