From 9afb084055e77622d1e3faa6099c340d00f94968 Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Tue, 23 Jan 2018 13:12:04 -0800 Subject: gpu: nvgpu: enable devfreq after finalize poweron Enabling gpu scaling driver after finalize poweron, will make gpu booting happen at initially set frequency(1GHz). Also doing platform specific init scale after enabling scaling driver. Bug 2049965 Bug 2039013 Bug 200377508 Change-Id: I633f8f5a25d9de18cbb3a022913b8b725ccd87e5 Signed-off-by: seshendra Gadagottu Reviewed-on: https://git-master.nvidia.com/r/1644703 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/platform_gk20a.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/common/linux/platform_gk20a.h') diff --git a/drivers/gpu/nvgpu/common/linux/platform_gk20a.h b/drivers/gpu/nvgpu/common/linux/platform_gk20a.h index b0c089e6..60e71a74 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gk20a.h +++ b/drivers/gpu/nvgpu/common/linux/platform_gk20a.h @@ -177,6 +177,9 @@ struct gk20a_platform { /* Called to register GPCPLL with common clk framework */ int (*clk_register)(struct gk20a *g); + /* platform specific scale init quirks */ + void (*initscale)(struct device *dev); + /* Postscale callback is called after frequency change */ void (*postscale)(struct device *dev, unsigned long freq); -- cgit v1.2.2