clk: msm: osm: fix cores in retention as inactive selection

When SPM_CORE_RET_MAPPING is set to 1, cores in retention
are treated as inactive by the OSM. However, currently
this register is programmed to 0 when the flag to treat
cores in retention as inactive is specified. Fix this.

Change-Id: Ibc5df71ddd0cfdabf82d3c1e47efca0d88823a2f
CRs-Fixed: 1017123
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
This commit is contained in:
Osvaldo Banuelos 2016-05-13 16:55:21 -07:00 committed by Jeevan Shriram
parent 1b30680459
commit 066d3d627b

View file

@ -1196,10 +1196,10 @@ static int clk_osm_set_cc_policy(struct platform_device *pdev)
rc = of_property_read_bool(pdev->dev.of_node, "qcom,set-ret-inactive");
if (rc) {
dev_dbg(&pdev->dev, "Treat cores in retention as active\n");
val = 1;
val = 0;
} else {
dev_dbg(&pdev->dev, "Treat cores in retention as inactive\n");
val = 0;
val = 1;
}
clk_osm_write_reg(&pwrcl_clk, val, SPM_CORE_RET_MAPPING);