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

Commit c4227444 authored by Liron Kuch's avatar Liron Kuch
Browse files

tspp: Set TSIF reference clock rate



The TSIF reference clock supports a single rate.
Set TSIF reference clock rate in the driver instead of relying
on the rate to be set externally.

Change-Id: Ie9053d116beab1c29bc2513a1fdea3ab141c2996
Signed-off-by: default avatarLiron Kuch <lkuch@codeaurora.org>
parent 1f4dd82d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2935,6 +2935,7 @@ static int msm_tspp_probe(struct platform_device *pdev)
	struct resource *mem_bam;
	struct tspp_channel *channel;
	struct msm_bus_scale_pdata *tspp_bus_pdata = NULL;
	unsigned long rate;

	if (pdev->dev.of_node) {
		/* get information from device tree */
@@ -3029,6 +3030,10 @@ static int msm_tspp_probe(struct platform_device *pdev)
			device->tsif_ref_clk = NULL;
			goto err_refclock;
		}
		rate = clk_round_rate(device->tsif_ref_clk, 1);
		rc = clk_set_rate(device->tsif_ref_clk, rate);
		if (rc)
			goto err_res_tsif0;
	}

	/* map I/O memory */