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

Commit 45b84a4f authored by Zhiqiang Tu's avatar Zhiqiang Tu Committed by Gerrit - the friendly Code Review server
Browse files

clk: msm: Add usb2s support for msm8996 virtual clock



Add the usb2s relevant clocks in msm8996 virtual clock driver.

Change-Id: Id72e1a69f39ee2dd0c871828e9faed8dbedefd5b
Signed-off-by: default avatarZhiqiang Tu <ztu@codeaurora.org>
parent a5cabe93
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
@@ -410,6 +410,38 @@ static struct virtclk_front gcc_usb3_clkref_clk = {
	},
};

static struct virtclk_front gcc_usb20_master_clk = {
	.c = {
		.dbg_name = "gcc_usb20_master_clk",
		.ops = &virtclk_front_ops,
		CLK_INIT(gcc_usb20_master_clk.c),
	},
};

static struct virtclk_front gcc_periph_noc_usb20_ahb_clk = {
	.c = {
		.dbg_name = "gcc_periph_noc_usb20_ahb_clk",
		.ops = &virtclk_front_ops,
		CLK_INIT(gcc_periph_noc_usb20_ahb_clk.c),
	},
};

static struct virtclk_front gcc_usb20_mock_utmi_clk = {
	.c = {
		.dbg_name = "gcc_usb20_mock_utmi_clk",
		.ops = &virtclk_front_ops,
		CLK_INIT(gcc_usb20_mock_utmi_clk.c),
	},
};

static struct virtclk_front gcc_usb20_sleep_clk = {
	.c = {
		.dbg_name = "gcc_usb20_sleep_clk",
		.ops = &virtclk_front_ops,
		CLK_INIT(gcc_usb20_sleep_clk.c),
	},
};

static struct virtclk_front hlos1_vote_lpass_adsp_smmu_clk = {
	.c = {
		.dbg_name = "gcc_lpass_adsp_smmu_clk",
@@ -516,6 +548,10 @@ static struct clk_lookup msm_clocks_8996[] = {
	CLK_LIST(gcc_usb30_sleep_clk),
	CLK_LIST(gcc_usb_phy_cfg_ahb2phy_clk),
	CLK_LIST(gcc_usb3_clkref_clk),
	CLK_LIST(gcc_usb20_master_clk),
	CLK_LIST(gcc_periph_noc_usb20_ahb_clk),
	CLK_LIST(gcc_usb20_mock_utmi_clk),
	CLK_LIST(gcc_usb20_sleep_clk),
	CLK_LIST(hlos1_vote_lpass_adsp_smmu_clk),
	CLK_LIST(gcc_mss_cfg_ahb_clk),
	CLK_LIST(gcc_mss_q6_bimc_axi_clk),