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

Commit d99d8106 authored by Taniya Das's avatar Taniya Das
Browse files

clk: qcom: rpmh: Add support for PMIC clocks for YUPIK



Add the PMIC clocks required to be requested from clients via RPMH clock
driver.

Change-Id: I75b02fd3283ea0c459c6e28f06cfb45f04ece214
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent efc64e39
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -534,6 +534,29 @@ static const struct clk_rpmh_desc clk_rpmh_sdxlemur = {
	.num_clks = ARRAY_SIZE(sdxlemur_rpmh_clocks),
};

DEFINE_CLK_RPMH_ARC(yupik, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 4);

static struct clk_hw *yupik_rpmh_clocks[] = {
	[RPMH_CXO_CLK]		= &yupik_bi_tcxo.hw,
	[RPMH_CXO_CLK_A]	= &yupik_bi_tcxo_ao.hw,
	[RPMH_LN_BB_CLK2]	= &lahaina_ln_bb_clk2.hw,
	[RPMH_LN_BB_CLK2_A]	= &lahaina_ln_bb_clk2_ao.hw,
	[RPMH_RF_CLK1]		= &lahaina_rf_clk1.hw,
	[RPMH_RF_CLK1_A]	= &lahaina_rf_clk1_ao.hw,
	[RPMH_RF_CLK3]		= &lahaina_rf_clk3.hw,
	[RPMH_RF_CLK3_A]	= &lahaina_rf_clk3_ao.hw,
	[RPMH_RF_CLK4]		= &lahaina_rf_clk4.hw,
	[RPMH_RF_CLK4_A]	= &lahaina_rf_clk4_ao.hw,
	[RPMH_IPA_CLK]		= &lahaina_ipa.hw,
	[RPMH_PKA_CLK]		= &lahaina_pka.hw,
	[RPMH_HWKM_CLK]		= &lahaina_hwkm.hw,
};

static const struct clk_rpmh_desc clk_rpmh_yupik = {
	.clks = yupik_rpmh_clocks,
	.num_clks = ARRAY_SIZE(yupik_rpmh_clocks),
};

static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec,
					 void *data)
{
@@ -631,6 +654,7 @@ static const struct of_device_id clk_rpmh_match_table[] = {
	{ .compatible = "qcom,lahaina-rpmh-clk", .data = &clk_rpmh_lahaina},
	{ .compatible = "qcom,shima-rpmh-clk", .data = &clk_rpmh_shima},
	{ .compatible = "qcom,sdxlemur-rpmh-clk", .data = &clk_rpmh_sdxlemur},
	{ .compatible = "qcom,yupik-rpmh-clk", .data = &clk_rpmh_yupik},
	{ }
};
MODULE_DEVICE_TABLE(of, clk_rpmh_match_table);