Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 648a12f8 authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

qcom: clock-gcc-8994: Add dummy clocks for the A53/57 and CCI



Low power mode and cpufreq drivers need to obtain
references to the CPU and CCI clocks. Add dummy
clocks to allow them to probe.

Change-Id: I11d4b7959b5abcf992bade9a18217fbfb51761e4
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 9ff23399
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2331,6 +2331,10 @@ static struct branch_clk gcc_usb_phy_cfg_ahb2phy_clk = {
	},
};

DEFINE_CLK_DUMMY(cci_clk, 150000000);
DEFINE_CLK_DUMMY(a53_clk, 250000000);
DEFINE_CLK_DUMMY(a57_clk, 250000000);

static struct mux_clk gcc_debug_mux;
static struct clk_ops clk_ops_debug_mux;
static struct clk_mux_ops gcc_debug_mux_ops;
@@ -2631,6 +2635,9 @@ static struct clk_lookup msm_clocks_gcc_8994[] = {
	CLK_LIST(gcc_usb_hs_ahb_clk),
	CLK_LIST(gcc_usb_hs_system_clk),
	CLK_LIST(gcc_usb_phy_cfg_ahb2phy_clk),
	CLK_LIST(cci_clk),
	CLK_LIST(a53_clk),
	CLK_LIST(a57_clk),
};

static int msm_gcc_8994_probe(struct platform_device *pdev)
+5 −0
Original line number Diff line number Diff line
@@ -384,6 +384,11 @@
#define clk_mdss_pclk0_clk 0x3487234a
#define clk_mdss_pclk1_clk 0xd5804246

/* clock_cpu controlled clocks */
#define clk_cci_clk 0x96854074
#define clk_a53_clk 0x5c9f8836
#define clk_a57_clk 0x6c7dc3ea

/* clock_debug controlled clocks */
#define clk_gcc_debug_mux 0x8121ac15