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

Commit 73bf88d6 authored by Hareesh Gundu's avatar Hareesh Gundu Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Add support for always-on clock



Always on clock is being used for staggering logic
present in GPU to avoid voltage droop when powering
up and down the GPU.

Change-Id: Ib466148aa9b297698159e3d37ceb7f55aa0be7a6
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 0dc787c3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ Required properties:
				KGSL_CLK_MEM_IFACE 0x00000010
				KGSL_CLK_AXI    0x00000020
				KGSL_CLK_RBBMTIMER 0x00000080
				KGSL_CLK_ALWAYSON 0x00000800

- clocks:		List of phandle and clock specifier pairs, one pair
			for each clock input to the device.
@@ -30,7 +31,7 @@ Required properties:
			order as the clocks property.
				Current values of clock-names are:
				"src_clk", "core_clk", "iface_clk", "mem_clk", "mem_iface_clk",
				"alt_mem_iface_clk", "rbbmtimer_clk"
				"alt_mem_iface_clk", "rbbmtimer_clk",  "alwayson_clk"
				"core_clk" and "iface_clk" are required and others are optional

- qcom,gpu-efuse-leakage:	memory region for GPU power rail leakage.
+4 −0
Original line number Diff line number Diff line
@@ -96,6 +96,10 @@ static struct clk_pair clks[KGSL_MAX_CLKS] = {
		.name = "gtbu_clk",
		.map = KGSL_CLK_GFX_GTBU,
	},
	{
		.name = "alwayson_clk",
		.map = KGSL_CLK_ALWAYSON,
	},
};

static struct clk_pair dummy_mx_clk = {
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@

#define KGSL_PWR_ON	0xFFFF

#define KGSL_MAX_CLKS 9
#define KGSL_MAX_CLKS 10

#define KGSL_MAX_REGULATORS 2
#define KGSL_MAX_REGULATOR_NAME_LEN 8
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
#define KGSL_CLK_GFX_GTCU   0x00000100
#define KGSL_CLK_GFX_GTBU   0x00000200
#define KGSL_CLK_MX	0x00000400
#define KGSL_CLK_ALWAYSON   0x00000800

#define KGSL_MAX_PWRLEVELS 10