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

clk: ti: add clkctrl data omap5 sgx

Looks like we have sgx clock missing currently so let's add it.

Cc: Adam Ford <aford173@gmail.com>
Cc: Filip Matijević <filip.matijevic.pz@gmail.com>
Cc: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Cc: moaz korena <moaz@korena.xyz>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Cc: Philipp Rossak <embed3d@gmail.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-clk@vger.kernel.org
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>

+37
+34
drivers/clk/ti/clk-54xx.c
··· 314 314 { 0 }, 315 315 }; 316 316 317 + static const char * const omap5_gpu_core_mux_parents[] __initconst = { 318 + "dpll_core_h14x2_ck", 319 + "dpll_per_h14x2_ck", 320 + NULL, 321 + }; 322 + 323 + static const char * const omap5_gpu_hyd_mux_parents[] __initconst = { 324 + "dpll_core_h14x2_ck", 325 + "dpll_per_h14x2_ck", 326 + NULL, 327 + }; 328 + 329 + static const char * const omap5_gpu_sys_clk_parents[] __initconst = { 330 + "sys_clkin", 331 + NULL, 332 + }; 333 + 334 + static const struct omap_clkctrl_div_data omap5_gpu_sys_clk_data __initconst = { 335 + .max_div = 2, 336 + }; 337 + 338 + static const struct omap_clkctrl_bit_data omap5_gpu_core_bit_data[] __initconst = { 339 + { 24, TI_CLK_MUX, omap5_gpu_core_mux_parents, NULL }, 340 + { 25, TI_CLK_MUX, omap5_gpu_hyd_mux_parents, NULL }, 341 + { 26, TI_CLK_DIVIDER, omap5_gpu_sys_clk_parents, &omap5_gpu_sys_clk_data }, 342 + { 0 }, 343 + }; 344 + 345 + static const struct omap_clkctrl_reg_data omap5_gpu_clkctrl_regs[] __initconst = { 346 + { OMAP5_GPU_CLKCTRL, omap5_gpu_core_bit_data, CLKF_SW_SUP, "gpu_cm:clk:0000:24" }, 347 + { 0 }, 348 + }; 349 + 317 350 static const char * const omap5_mmc1_fclk_mux_parents[] __initconst = { 318 351 "func_128m_clk", 319 352 "dpll_per_m2x2_ck", ··· 503 470 { 0x4a008e20, omap5_l3instr_clkctrl_regs }, 504 471 { 0x4a009020, omap5_l4per_clkctrl_regs }, 505 472 { 0x4a009420, omap5_dss_clkctrl_regs }, 473 + { 0x4a009520, omap5_gpu_clkctrl_regs }, 506 474 { 0x4a009620, omap5_l3init_clkctrl_regs }, 507 475 { 0x4ae07920, omap5_wkupaon_clkctrl_regs }, 508 476 { 0 },
+3
include/dt-bindings/clock/omap5.h
··· 89 89 /* dss clocks */ 90 90 #define OMAP5_DSS_CORE_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 91 91 92 + /* gpu clocks */ 93 + #define OMAP5_GPU_CLKCTRL OMAP5_CLKCTRL_INDEX(0x20) 94 + 92 95 /* l3init clocks */ 93 96 #define OMAP5_MMC1_CLKCTRL OMAP5_CLKCTRL_INDEX(0x28) 94 97 #define OMAP5_MMC2_CLKCTRL OMAP5_CLKCTRL_INDEX(0x30)