From 4ac110cb8a46a0c91a4a1e39c168de1b49688971 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 7 May 2014 13:09:36 +0300 Subject: gpu: nvgpu: Register as subdomain of host1x Add gk20a as a sub power domain of host1x. This enforces keeping host1x on when using gk20a. Bug 200003112 Change-Id: I08db595bc7b819d86d33fb98af0d8fb4de369463 Signed-off-by: Arto Merilainen Reviewed-on: http://git-master/r/407543 Reviewed-by: Riham Haidar Tested-by: Riham Haidar --- drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 09f348cb..90333eef 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h @@ -71,17 +71,6 @@ struct gk20a_platform { */ int (*late_probe)(struct platform_device *dev); - /* Called before submitting work to the gpu. The platform may use this - * hook to ensure that any other hw modules that the gpu depends on are - * powered. The platform implementation must count refs to this call. */ - int (*channel_busy)(struct platform_device *dev); - - /* Called after the work on the gpu is completed. The platform may use - * this hook to release power refs to any other hw modules that the gpu - * depends on. The platform implementation must count refs to this - * call. */ - void (*channel_idle)(struct platform_device *dev); - /* This function is called to allocate secure memory (memory that the * CPU cannot see). The function should fill the context buffer * descriptor (especially fields destroy, sgt, size). @@ -134,23 +123,6 @@ extern struct gk20a_platform gk20a_generic_platform; extern struct gk20a_platform gk20a_tegra_platform; #endif -static inline int gk20a_platform_channel_busy(struct platform_device *dev) -{ - struct gk20a_platform *p = gk20a_get_platform(dev); - int ret = 0; - if (p->channel_busy) - ret = p->channel_busy(dev); - - return ret; -} - -static inline void gk20a_platform_channel_idle(struct platform_device *dev) -{ - struct gk20a_platform *p = gk20a_get_platform(dev); - if (p->channel_idle) - p->channel_idle(dev); -} - static inline bool gk20a_platform_has_syncpoints(struct platform_device *dev) { struct gk20a_platform *p = gk20a_get_platform(dev); -- cgit v1.2.2