clk: exynos: add gate clock descriptions of System MMU
PATCH v10 10/20 clk: exynos: add gate clock descriptions of System MMU
This adds gate clocks of all System MMUs and their master IPs that are not apeared in clk-exynos5250.c and clk-exynos5420.c Also fixes GATE_IP_ACP to 0x18800 and changed GATE_DA to GATE for System MMU clocks in clk-exynos4.c
Signed-off-by Cho KyongHo <[email protected]>
--- .../devicetree/bindings/clock/exynos5250-clock.txt | 28 +++++++++++ .../devicetree/bindings/clock/exynos5420-clock.txt | 3 + drivers/clk/samsung/clk-exynos5250.c | 49 ++++++++++++++++++- drivers/clk/samsung/clk-exynos5420.c | 12 ++++- 4 files changed, 87 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/clock/exynos5250-clock.txt +28 -0
@@ -159,6 +159,34 @@ clock which they consume. mixer 343 hdmi 344 g2d 345 + smmu_fimc_lite0 346 + smmu_fimc_lite1 347 + smmu_fimc_lite2 348 + smmu_tv 349 + smmu_fimd1 350 + smmu_2d 351 + fimc_isp 352 + fimc_drc 353 + fimc_fd 354 + fimc_scc 355 + fimc_scp 356 + fimc_mcuctl 357 + fimc_odc 358 + fimc_dis 359 + fimc_3dnr 360 + smmu_fimc_isp 361 + smmu_fimc_drc 362 + smmu_fimc_fd 363 + smmu_fimc_scc 364 + smmu_fimc_scp 365 + smmu_fimc_mcuctl 366 + smmu_fimc_odc 367 + smmu_fimc_dis0 368 + smmu_fimc_dis1 369 + smmu_fimc_3dnr 370 + camif_top 371 + mdma0 372 + smmu_mdma0 373 [Clock Muxes]
Documentation/devicetree/bindings/clock/exynos5420-clock.txt +3 -0
@@ -172,12 +172,15 @@ clock which they consume. mdma0 473 aclk333_g2d 480 g2d 481 + smmu_g2d 482 aclk333_432_gscl 490 smmu_3aa 491 smmu_fimcl0 492 smmu_fimcl1 493 smmu_fimcl3 494 fimc_lite3 495 + fimc_lite0 496 + fimc_lite1 497 aclk_g3d 500 g3d 501 smmu_mixer 502
drivers/clk/samsung/clk-exynos5250.c +46 -3
104 lines not on this page · raw message
drivers/clk/samsung/clk-exynos5420.c +10 -2
@@ -80,6 +80,7 @@#define GATE_BUS_PERIC1 0x10754#define GATE_BUS_PERIS0 0x10760#define GATE_BUS_PERIS1 0x10764 +#define GATE_IP_G2D 0x08800#define GATE_IP_GSCL0 0x10910#define GATE_IP_GSCL1 0x10920#define GATE_IP_MFC 0x1092c
@@ -137,8 +138,8 @@ enum exynos5420_clks { smmu_rotator, smmu_mdma1, aclk300_jpeg =450 , jpeg, jpeg2, smmu_jpeg, aclk300_gscl =460 , smmu_gscl0, smmu_gscl1, gscl_wa, gscl_wb, gscl0, gscl1, clk_3aa, aclk266_g2d =470 , sss, slim_sss, mdma0, - aclk333_g2d =480 , g2d, aclk333_432_gscl =490 , smmu_3aa, smmu_fimcl0, - smmu_fimcl1, smmu_fimcl3, fimc_lite3, aclk_g3d =500 , g3d, smmu_mixer, + aclk333_g2d =480 , g2d, smmu_g2d, aclk333_432_gscl =490 , smmu_3aa, smmu_fimcl0, + smmu_fimcl1, smmu_fimcl3, fimc_lite3, fimc_lite0, fimc_lite1, aclk_g3d =500 , g3d, smmu_mixer,/* mux clocks */ mout_hdmi = 640,
@@ -198,6 +199,7 @@ static unsigned long exynos5420_clk_regs[] __initdata = {GATE_BUS_PERIC1 ,GATE_BUS_PERIS0 ,GATE_BUS_PERIS1 , +GATE_IP_G2D ,GATE_IP_GSCL0 ,GATE_IP_GSCL1 , GATE_IP_MFC,
@@ -701,6 +703,10 @@ static struct samsung_gate_clock exynos5420_gate_clks[] __initdata = {GATE (gscl_wb,"gscl_wb" ,"aclk300_gscl" ,GATE_IP_GSCL1 ,13 ,0 ,0 ),GATE (smmu_fimcl3,"smmu_fimcl3," ,"aclk333_432_gscl" ,GATE_IP_GSCL1 ,16 ,0 ,0 ), +GATE (fimc_lite0,"fimc_lite0" ,"aclk333_432_gscl" , +GATE_IP_GSCL0 ,5 ,0 ,0 ), +GATE (fimc_lite1,"fimc_lite1" ,"aclk333_432_gscl" , +GATE_IP_GSCL0 ,6 ,0 ,0 ),GATE (fimc_lite3,"fimc_lite3" ,"aclk333_432_gscl" , GATE_IP_GSCL1, 17, 0, 0),
@@ -732,6 +738,8 @@ static struct samsung_gate_clock exynos5420_gate_clks[] __initdata = {GATE (smmu_mscl1,"smmu_mscl1" ,"aclk400_mscl" ,GATE_IP_MSCL ,9 ,0 ,0 ),GATE (smmu_mscl2,"smmu_mscl2" ,"aclk400_mscl" ,GATE_IP_MSCL ,10 ,0 ,0 ),GATE (smmu_mixer,"smmu_mixer" ,"aclk200_disp1" ,GATE_IP_DISP1 ,9 ,0 ,0 ), +GATE (g2d,"g2d" ,"aclk333_g2d" ,GATE_IP_G2D ,3 ,0 ,0 ), + GATE(smmu_g2d, "smmu_g2d", "aclk333_g2d", GATE_IP_G2D, 7, 0, 0), }; static struct samsung_pll_clock exynos5420_plls[nr_plls] __initdata = {
Signature · 1 line
1.7.2.5