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

Commit 6444244d authored by Taniya Das's avatar Taniya Das Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: camcc: Remove CFA mode for CAMPLL2



CFA mode is not required to be enabled for CAMPLL2 v2 of lito.
Update the test control bit to remove the same.

Change-Id: I424d00dd5e3ee6b5a8b206cfda3ceab5eecfb91b
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 2fe8c633
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -324,7 +324,7 @@ static struct clk_alpha_pll_postdiv cam_cc_pll1_out_even = {
	},
};

static const struct alpha_pll_config cam_cc_pll2_config = {
static struct alpha_pll_config cam_cc_pll2_config = {
	.l = 0x32,
	.cal_l = 0x32,
	.alpha = 0x0,
@@ -2319,6 +2319,7 @@ static const struct qcom_cc_desc cam_cc_lito_desc = {

static const struct of_device_id cam_cc_lito_match_table[] = {
	{ .compatible = "qcom,lito-camcc" },
	{ .compatible = "qcom,lito-camcc-v2" },
	{ }
};
MODULE_DEVICE_TABLE(of, cam_cc_lito_match_table);
@@ -2361,6 +2362,10 @@ static int cam_cc_lito_probe(struct platform_device *pdev)

	clk_lucid_pll_configure(&cam_cc_pll0, regmap, &cam_cc_pll0_config);
	clk_lucid_pll_configure(&cam_cc_pll1, regmap, &cam_cc_pll1_config);

	if (of_device_is_compatible(pdev->dev.of_node, "qcom,lito-camcc-v2"))
		cam_cc_pll2_config.test_ctl_val = 0x00000000;

	clk_zonda_pll_configure(&cam_cc_pll2, regmap, &cam_cc_pll2_config);
	clk_lucid_pll_configure(&cam_cc_pll3, regmap, &cam_cc_pll3_config);
	clk_lucid_pll_configure(&cam_cc_pll4, regmap, &cam_cc_pll4_config);