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

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: gcc: Remove CPUSS clocks control for SC7280

The CPUSS clocks are kept always ON and at a fixed frequency of 100MHZ
from the bootloader and no longer required to be controlled from HLOS.

Fixes: a3cc092196ef ("clk: qcom: Add Global Clock controller (GCC) driver for SC7280")
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/1633579571-25475-1-git-send-email-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Taniya Das and committed by
Stephen Boyd
3165d1e3 30ecef23

-79
-79
drivers/clk/qcom/gcc-sc7280.c
··· 479 479 }, 480 480 }, 481 481 }; 482 - static const struct freq_tbl ftbl_gcc_cpuss_ahb_clk_src[] = { 483 - F(19200000, P_BI_TCXO, 1, 0, 0), 484 - { } 485 - }; 486 - 487 - static struct clk_rcg2 gcc_cpuss_ahb_clk_src = { 488 - .cmd_rcgr = 0x4800c, 489 - .mnd_width = 0, 490 - .hid_width = 5, 491 - .parent_map = gcc_parent_map_0, 492 - .freq_tbl = ftbl_gcc_cpuss_ahb_clk_src, 493 - .clkr.hw.init = &(struct clk_init_data){ 494 - .name = "gcc_cpuss_ahb_clk_src", 495 - .parent_data = gcc_parent_data_0_ao, 496 - .num_parents = ARRAY_SIZE(gcc_parent_data_0_ao), 497 - .ops = &clk_rcg2_ops, 498 - }, 499 - }; 500 482 501 483 static const struct freq_tbl ftbl_gcc_gp1_clk_src[] = { 502 484 F(50000000, P_GCC_GPLL0_OUT_EVEN, 6, 0, 0), ··· 1221 1239 }, 1222 1240 }; 1223 1241 1224 - static struct clk_regmap_div gcc_cpuss_ahb_postdiv_clk_src = { 1225 - .reg = 0x48024, 1226 - .shift = 0, 1227 - .width = 4, 1228 - .clkr.hw.init = &(struct clk_init_data) { 1229 - .name = "gcc_cpuss_ahb_postdiv_clk_src", 1230 - .parent_hws = (const struct clk_hw*[]){ 1231 - &gcc_cpuss_ahb_clk_src.clkr.hw, 1232 - }, 1233 - .num_parents = 1, 1234 - .flags = CLK_SET_RATE_PARENT, 1235 - .ops = &clk_regmap_div_ro_ops, 1236 - }, 1237 - }; 1238 - 1239 1242 static struct clk_regmap_div gcc_usb30_prim_mock_utmi_postdiv_clk_src = { 1240 1243 .reg = 0xf050, 1241 1244 .shift = 0, ··· 1462 1495 }, 1463 1496 .num_parents = 1, 1464 1497 .flags = CLK_SET_RATE_PARENT, 1465 - .ops = &clk_branch2_ops, 1466 - }, 1467 - }, 1468 - }; 1469 - 1470 - /* For CPUSS functionality the AHB clock needs to be left enabled */ 1471 - static struct clk_branch gcc_cpuss_ahb_clk = { 1472 - .halt_reg = 0x48000, 1473 - .halt_check = BRANCH_HALT_VOTED, 1474 - .hwcg_reg = 0x48000, 1475 - .hwcg_bit = 1, 1476 - .clkr = { 1477 - .enable_reg = 0x52000, 1478 - .enable_mask = BIT(21), 1479 - .hw.init = &(struct clk_init_data){ 1480 - .name = "gcc_cpuss_ahb_clk", 1481 - .parent_hws = (const struct clk_hw*[]){ 1482 - &gcc_cpuss_ahb_postdiv_clk_src.clkr.hw, 1483 - }, 1484 - .num_parents = 1, 1485 - .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 1486 1498 .ops = &clk_branch2_ops, 1487 1499 }, 1488 1500 }, ··· 2554 2608 }, 2555 2609 }; 2556 2610 2557 - /* For CPUSS functionality the AHB clock needs to be left enabled */ 2558 - static struct clk_branch gcc_sys_noc_cpuss_ahb_clk = { 2559 - .halt_reg = 0x48178, 2560 - .halt_check = BRANCH_HALT_VOTED, 2561 - .hwcg_reg = 0x48178, 2562 - .hwcg_bit = 1, 2563 - .clkr = { 2564 - .enable_reg = 0x52000, 2565 - .enable_mask = BIT(0), 2566 - .hw.init = &(struct clk_init_data){ 2567 - .name = "gcc_sys_noc_cpuss_ahb_clk", 2568 - .parent_hws = (const struct clk_hw*[]){ 2569 - &gcc_cpuss_ahb_postdiv_clk_src.clkr.hw, 2570 - }, 2571 - .num_parents = 1, 2572 - .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 2573 - .ops = &clk_branch2_ops, 2574 - }, 2575 - }, 2576 - }; 2577 - 2578 2611 static struct clk_branch gcc_throttle_pcie_ahb_clk = { 2579 2612 .halt_reg = 0x9001c, 2580 2613 .halt_check = BRANCH_HALT, ··· 3219 3294 [GCC_CAMERA_SF_AXI_CLK] = &gcc_camera_sf_axi_clk.clkr, 3220 3295 [GCC_CFG_NOC_USB3_PRIM_AXI_CLK] = &gcc_cfg_noc_usb3_prim_axi_clk.clkr, 3221 3296 [GCC_CFG_NOC_USB3_SEC_AXI_CLK] = &gcc_cfg_noc_usb3_sec_axi_clk.clkr, 3222 - [GCC_CPUSS_AHB_CLK] = &gcc_cpuss_ahb_clk.clkr, 3223 - [GCC_CPUSS_AHB_CLK_SRC] = &gcc_cpuss_ahb_clk_src.clkr, 3224 - [GCC_CPUSS_AHB_POSTDIV_CLK_SRC] = &gcc_cpuss_ahb_postdiv_clk_src.clkr, 3225 3297 [GCC_DDRSS_GPU_AXI_CLK] = &gcc_ddrss_gpu_axi_clk.clkr, 3226 3298 [GCC_DDRSS_PCIE_SF_CLK] = &gcc_ddrss_pcie_sf_clk.clkr, 3227 3299 [GCC_DISP_GPLL0_CLK_SRC] = &gcc_disp_gpll0_clk_src.clkr, ··· 3325 3403 [GCC_SDCC4_AHB_CLK] = &gcc_sdcc4_ahb_clk.clkr, 3326 3404 [GCC_SDCC4_APPS_CLK] = &gcc_sdcc4_apps_clk.clkr, 3327 3405 [GCC_SDCC4_APPS_CLK_SRC] = &gcc_sdcc4_apps_clk_src.clkr, 3328 - [GCC_SYS_NOC_CPUSS_AHB_CLK] = &gcc_sys_noc_cpuss_ahb_clk.clkr, 3329 3406 [GCC_THROTTLE_PCIE_AHB_CLK] = &gcc_throttle_pcie_ahb_clk.clkr, 3330 3407 [GCC_TITAN_NRT_THROTTLE_CORE_CLK] = 3331 3408 &gcc_titan_nrt_throttle_core_clk.clkr,