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

Commit 95061c1c authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

clk: qcom: clk-cpu-osm: Change logic to enable OSM



On certain targets, there's a WDOG_DEBUG_EN field in the
OSM_ENABLE register that's set by default. This bit is
currently overridden and cleared while enabling OSM from
the clock driver.
Fix the logic to only effect the ENABLE_OSM bit.

Change-Id: I66b182476cc885be5fd9ac91fc030ca5ad2be329
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 14416b24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -563,7 +563,7 @@ static int clk_osm_enable(struct clk_hw *hw)
{
	struct clk_osm *cpuclk = to_clk_osm(hw);

	clk_osm_write_reg(cpuclk, 1, ENABLE_REG, OSM_BASE);
	clk_osm_masked_write_reg(cpuclk, ENABLE_OSM, ENABLE_REG, ENABLE_OSM);

	/* Make sure the write goes through before proceeding */
	clk_osm_mb(cpuclk, OSM_BASE);