meta-freescale-3rdparty/recipes-kernel/linux/linux-imx-3.0.35/0003-ENGR00261814-4-gpu-use-new-PU-power-on-off-interface.patch
Otavio Salvador 07ad83db0f linux-imx (3.0.35): Fix Congatec board build to use 3.0.35-4.0.0
The Congatec qmx6 is based on 3.0.35-4.0.0 BSP and has not been ported
to the 3.0.35-4.1.0 yet; we workaround it fixing the revision and
applying the need patches on top of the kernel for it to work with the
3.10.9-1.0.0 GPU.

Change-Id: Ifa5baa4dd26edd5e68c9f3e2d5dec2b078e05a23
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2013-11-28 09:47:40 -02:00

54 lines
1.7 KiB
Diff

From 1579de9397783ab5321c80f1e76661653ef38ccd Mon Sep 17 00:00:00 2001
From: Robin Gong <b38343@freescale.com>
Date: Thu, 9 May 2013 11:45:55 +0800
Subject: [PATCH 3/6] ENGR00261814-4 gpu: use new PU power on/off interface
use new PU power on/off interface in GPU driver
Upstream-Status: Backport [3.5.7-1.0.0]
Signed-off-by: Robin Gong <b38343@freescale.com>
Acked-by: Lily Zhang
---
.../mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
index 9c2bae6..dfbc699 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
@@ -6819,8 +6819,13 @@ gckOS_SetGPUPower(
}
if((Power == gcvTRUE) && (oldPowerState == gcvFALSE))
{
- if(!IS_ERR(Os->device->gpu_regulator))
- regulator_enable(Os->device->gpu_regulator);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)
+ if(!IS_ERR(Os->device->gpu_regulator))
+ regulator_enable(Os->device->gpu_regulator);
+#else
+ imx_gpc_power_up_pu(true);
+#endif
+
#ifdef CONFIG_PM
pm_runtime_get_sync(Os->device->pmdev);
#endif
@@ -6930,8 +6935,13 @@ gckOS_SetGPUPower(
#ifdef CONFIG_PM
pm_runtime_put_sync(Os->device->pmdev);
#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)
if(!IS_ERR(Os->device->gpu_regulator))
- regulator_disable(Os->device->gpu_regulator);
+ regulator_disable(Os->device->gpu_regulator);
+#else
+ imx_gpc_power_up_pu(false);
+#endif
}
/* TODO: Put your code here. */
gcmkFOOTER_NO();
--
1.8.3.2