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

Commit 2431c5d6 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: Add support for 364.8MHz for Venus clocks on sdm670"

parents 072d4704 8fee82fb
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -114,6 +114,17 @@ static const struct freq_tbl ftbl_video_cc_venus_clk_src_sdm845_v2[] = {
	{ }
};

static const struct freq_tbl ftbl_video_cc_venus_clk_src_sdm670[] = {
	F(100000000, P_VIDEO_PLL0_OUT_MAIN, 4, 0, 0),
	F(200000000, P_VIDEO_PLL0_OUT_MAIN, 2, 0, 0),
	F(330000000, P_VIDEO_PLL0_OUT_MAIN, 2, 0, 0),
	F(364800000, P_VIDEO_PLL0_OUT_MAIN, 2, 0, 0),
	F(404000000, P_VIDEO_PLL0_OUT_MAIN, 1, 0, 0),
	F(444000000, P_VIDEO_PLL0_OUT_MAIN, 1, 0, 0),
	F(533000000, P_VIDEO_PLL0_OUT_MAIN, 1, 0, 0),
	{ }
};

static struct clk_rcg2 video_cc_venus_clk_src = {
	.cmd_rcgr = 0x7f0,
	.mnd_width = 0,
@@ -343,8 +354,10 @@ static void video_cc_sdm845_fixup_sdm845v2(void)

static void video_cc_sdm845_fixup_sdm670(void)
{
	video_cc_sdm845_fixup_sdm845v2();

	video_cc_venus_clk_src.freq_tbl = ftbl_video_cc_venus_clk_src_sdm670;
	video_cc_venus_clk_src.clkr.hw.init->rate_max[VDD_CX_LOW] = 330000000;
	video_cc_venus_clk_src.clkr.hw.init->rate_max[VDD_CX_LOW_L1] =
		404000000;
}

static int video_cc_sdm845_fixup(struct platform_device *pdev)