clk: ti: fix GFX clocks for reset support
Subsystems (2)
cover clk: ti: fix GFX clocks for reset support
Hi,
These two patches are on top of [1] to support GFX module reset properly for am3/am4 SoCs.
-Tero
[1] https://patchwork.kernel.org/cover/11143025/
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
PATCH 1/2 clk: ti: am33xx: drop idlest polling from gfx clock
Due to the way ti sysc and hardreset line control is now implemented, it is not possible to poll the clock status for gfx clock independent of hardreset line control. Thus, add a flag to prevent handling this status bit from clock driver. Correct sequencing of events is guaranteed by ti-sysc bus driver.
--- drivers/clk/ti/clk-33xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/ti/clk-33xx.c +1 -1
@@ -217,7 +217,7 @@ static const struct omap_clkctrl_reg_data am3_l4_rtc_clkctrl_regs[] __initconst };static const struct omap_clkctrl_reg_data am3_gfx_l3_clkctrl_regs[]__initconst = { - {AM3_GFX_L3_GFX_CLKCTRL ,NULL ,CLKF_SW_SUP ,"gfx_fck_div_ck" }, + {AM3_GFX_L3_GFX_CLKCTRL ,NULL ,CLKF_SW_SUP |CLKF_NO_IDLEST ,"gfx_fck_div_ck" }, {0 }, };
Signature · 4 lines
2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
PATCH 2/2 clk: ti: am43xx: drop idlest polling from gfx clock
In reply to Tero KristoDue to the way ti sysc and hardreset line control is now implemented, it is not possible to poll the clock status for gfx clock independent of hardreset line control. Thus, add a flag to prevent handling this status bit from clock driver. Correct sequencing of events is guaranteed by ti-sysc bus driver.
--- drivers/clk/ti/clk-43xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/ti/clk-43xx.c +1 -1
@@ -73,7 +73,7 @@ static const struct omap_clkctrl_reg_data am4_mpu_clkctrl_regs[] __initconst = { };static const struct omap_clkctrl_reg_data am4_gfx_l3_clkctrl_regs[]__initconst = { - {AM4_GFX_L3_GFX_CLKCTRL ,NULL ,CLKF_SW_SUP ,"gfx_fck_div_ck" }, + {AM4_GFX_L3_GFX_CLKCTRL ,NULL ,CLKF_SW_SUP |CLKF_NO_IDLEST ,"gfx_fck_div_ck" }, {0 }, };
Signature · 4 lines
2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Tero Kristo
AppliedQuoted 5 lines · Tero Kristo
Hi,
These two patches are on top of [1] to support GFX module reset properly for am3/am4 SoCs.
Queued towards 5.5, thanks.
-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki