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

Commit 201845b3 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: clk-cpu-osm: Update logic to check if OSMs been enabled in TZ"

parents 33f32fdf 0b32966c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@
#define PERFCL_EFUSE_MASK		0x7

#define ENABLE_REG			0x0
#define ENABLE_OSM			BIT(0)
#define FREQ_REG			0x110
#define VOLT_REG			0x114
#define OVERRIDE_REG			0x118
@@ -2629,7 +2630,7 @@ static int clk_osm_resources_init(struct platform_device *pdev)
	}

	/* Check if OSM has been enabled already by trustzone.  */
	if (readl_relaxed(l3_clk.vbases[OSM_BASE] + ENABLE_REG)) {
	if (readl_relaxed(l3_clk.vbases[OSM_BASE] + ENABLE_REG) & ENABLE_OSM) {
		dev_info(&pdev->dev, "OSM has been initialized and enabled by TZ software\n");
		osm_tz_enabled = true;
	}