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

Commit a2ff6042 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: 8939: Add support for cpp and mdp_rt tbu clocks"

parents f61a113c cf625e87
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -156,6 +156,8 @@ static void __iomem *virt_dbgbase;
#define JPEG_TBU_CBCR					0x12034
#define SMMU_CFG_CBCR					0x12038
#define VFE_TBU_CBCR					0x1203C
#define CPP_TBU_CBCR					0x12040
#define MDP_RT_TBU_CBCR					0x1204C
#define GTCU_AHB_CBCR					0x12044
#define GTCU_AHB_BRIDGE_CBCR				0x12094
#define APCS_GPLL_ENA_VOTE				0x45000
@@ -2702,6 +2704,30 @@ static struct local_vote_clk gcc_gtcu_ahb_clk = {
	},
};

static struct local_vote_clk gcc_cpp_tbu_clk = {
	.cbcr_reg = CPP_TBU_CBCR,
	.vote_reg = APCS_SMMU_CLOCK_BRANCH_ENA_VOTE,
	.en_mask = BIT(14),
	.base = &virt_bases[GCC_BASE],
	.c = {
		.dbg_name = "gcc_cpp_tbu_clk",
		.ops = &clk_ops_vote,
		CLK_INIT(gcc_cpp_tbu_clk.c),
	},
};

static struct local_vote_clk gcc_mdp_rt_tbu_clk = {
	.cbcr_reg = MDP_TBU_CBCR,
	.vote_reg = APCS_SMMU_CLOCK_BRANCH_ENA_VOTE,
	.en_mask = BIT(15),
	.base = &virt_bases[GCC_BASE],
	.c = {
		.dbg_name = "gcc_mdp_rt_tbu_clk",
		.ops = &clk_ops_vote,
		CLK_INIT(gcc_mdp_rt_tbu_clk.c),
	},
};

static struct branch_clk gcc_usb2a_phy_sleep_clk = {
	.cbcr_reg = USB2A_PHY_SLEEP_CBCR,
	.has_sibling = 1,
@@ -3026,6 +3052,8 @@ static struct mux_clk gcc_debug_mux = {
		{&gcc_mdss_esc0_clk.c,			0x01fd},
		{&gcc_mdss_esc1_clk.c,			0x01bc},
		{&gcc_bimc_gpu_clk.c,			0x0157},
		{&gcc_cpp_tbu_clk.c,			0x00e9},
		{&gcc_mdp_rt_tbu_clk.c,			0x00ee},
		{&wcnss_m_clk.c,			0x0198},
	),
	.c = {
@@ -3122,6 +3150,8 @@ static struct clk_lookup msm_clocks_lookup[] = {
	CLK_LIST(gcc_smmu_cfg_clk),
	CLK_LIST(gcc_venus_tbu_clk),
	CLK_LIST(gcc_vfe_tbu_clk),
	CLK_LIST(gcc_cpp_tbu_clk),
	CLK_LIST(gcc_mdp_rt_tbu_clk),

	/* Branches */
	CLK_LIST(gcc_blsp1_qup1_i2c_apps_clk),
+2 −0
Original line number Diff line number Diff line
@@ -100,6 +100,8 @@
#define clk_gcc_smmu_cfg_clk			0x75eaefa5
#define clk_gcc_venus_tbu_clk			0x7e0b97ce
#define clk_gcc_vfe_tbu_clk			0x061f2f95
#define clk_gcc_cpp_tbu_clk			0xab6f19ab
#define clk_gcc_mdp_rt_tbu_clk			0x51e8fc68
#define clk_gcc_blsp1_qup1_i2c_apps_clk		0xc303fae9
#define clk_gcc_blsp1_qup1_spi_apps_clk		0x759a76b0
#define clk_gcc_blsp1_qup2_i2c_apps_clk		0x1076f220