Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: ti: dra7: Drop idlest polling from IVA clkctrl clocks

Similar to what we've done for IPU and DSP let's ignore the status bit
for the IVA clkctrl register.

The clkctrl status won't change unless the related rstctrl is deasserted,
and the rstctrl status won't change unless the clkctrl is enabled.

Cc: linux-clk@vger.kernel.org
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Suman Anna <s-anna@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

+11
+7
drivers/clk/ti/clk-7xx.c
··· 252 252 { 0 }, 253 253 }; 254 254 255 + static const struct omap_clkctrl_reg_data dra7_iva_clkctrl_regs[] __initconst = { 256 + { DRA7_IVA_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_NO_IDLEST, "dpll_iva_h12x2_ck" }, 257 + { DRA7_SL2IF_CLKCTRL, NULL, CLKF_HW_SUP, "dpll_iva_h12x2_ck" }, 258 + { 0 }, 259 + }; 260 + 255 261 static const char * const dra7_dss_dss_clk_parents[] __initconst = { 256 262 "dpll_per_h12x2_ck", 257 263 NULL, ··· 833 827 { 0x4a008c00, dra7_atl_clkctrl_regs }, 834 828 { 0x4a008d20, dra7_l4cfg_clkctrl_regs }, 835 829 { 0x4a008e20, dra7_l3instr_clkctrl_regs }, 830 + { 0x4a008f20, dra7_iva_clkctrl_regs }, 836 831 { 0x4a009020, dra7_cam_clkctrl_regs }, 837 832 { 0x4a009120, dra7_dss_clkctrl_regs }, 838 833 { 0x4a009220, dra7_gpu_clkctrl_regs },
+4
include/dt-bindings/clock/dra7.h
··· 84 84 #define DRA7_L3_MAIN_2_CLKCTRL DRA7_CLKCTRL_INDEX(0x20) 85 85 #define DRA7_L3_INSTR_CLKCTRL DRA7_CLKCTRL_INDEX(0x28) 86 86 87 + /* iva clocks */ 88 + #define DRA7_IVA_CLKCTRL DRA7_CLKCTRL_INDEX(0x20) 89 + #define DRA7_SL2IF_CLKCTRL DRA7_CLKCTRL_INDEX(0x28) 90 + 87 91 /* dss clocks */ 88 92 #define DRA7_DSS_CORE_CLKCTRL DRA7_CLKCTRL_INDEX(0x20) 89 93 #define DRA7_BB2D_CLKCTRL DRA7_CLKCTRL_INDEX(0x30)