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

Commit bbc748d0 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Radhika Ranjan Soni
Browse files

clk: qcom: mdss: add DSI PLL clock driver support for msm8939



This change adds the DSI PLL clock driver support for
msm8939. Add the compatibility string of the DSI
PLL handle so that the detection and support of DSI
PLL driver for 8939 happens dynamically.

Change-Id: Iaa4be3541ce938816d5b9552b685ce05e7cdab64
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 60d75479
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -285,7 +285,8 @@ int dsi_pll_clock_register_lpm(struct platform_device *pdev,
	byte_mux_clk_ops = clk_ops_gen_mux;
	byte_mux_clk_ops.prepare = dsi_pll_mux_prepare;

	if (pll_res->target_id == MDSS_PLL_TARGET_8916) {
	if (pll_res->target_id == MDSS_PLL_TARGET_8916 ||
		pll_res->target_id == MDSS_PLL_TARGET_8939) {
		rc = of_msm_clock_register(pdev->dev.of_node,
			mdss_dsi_pllcc_8916, ARRAY_SIZE(mdss_dsi_pllcc_8916));
		if (rc) {
+4 −0
Original line number Diff line number Diff line
@@ -130,6 +130,9 @@ static int mdss_pll_resource_parse(struct platform_device *pdev,
	if (!strcmp(compatible_stream, "qcom,mdss_dsi_pll_8916")) {
		pll_res->pll_interface_type = MDSS_DSI_PLL_LPM;
		pll_res->target_id = MDSS_PLL_TARGET_8916;
	} else if (!strcmp(compatible_stream, "qcom,mdss_dsi_pll_8939")) {
		pll_res->pll_interface_type = MDSS_DSI_PLL_LPM;
		pll_res->target_id = MDSS_PLL_TARGET_8939;
	} else if (!strcmp(compatible_stream, "qcom,mdss_dsi_pll_8974")) {
		pll_res->pll_interface_type = MDSS_DSI_PLL_HPM;
		pll_res->target_id = MDSS_PLL_TARGET_8974;
@@ -305,6 +308,7 @@ static int mdss_pll_remove(struct platform_device *pdev)
static const struct of_device_id mdss_pll_dt_match[] = {
	{.compatible = "qcom,mdss_dsi_pll_8974"},
	{.compatible = "qcom,mdss_dsi_pll_8916"},
	{.compatible = "qcom,mdss_dsi_pll_8939"},
	{.compatible = "qcom,mdss_edp_pll"},
	{.compatible = "qcom,mdss_hdmi_pll"},
	{}
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ enum {
enum {
	MDSS_PLL_TARGET_8974,
	MDSS_PLL_TARGET_8916,
	MDSS_PLL_TARGET_8939,
};

struct mdss_pll_resources {