summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaluk Aral <h-aral@ti.com>2011-05-31 09:25:14 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:06:46 +0100
commitf9e0bddec7ab3e853e2c9ac7db40f0b394032031 (patch)
tree3304d16e2b74b87c1f218073fdade1c1f4201b39
parent17effe1d1825cba10f0c6187d5503bf6a10dd856 (diff)
OMAP4: SGX-KM: Set SGX clock speed
This patch correctly sets the SGX clock speed at the initialization stage of the driver. Change-Id: I3b9e28e148722ada1c0d58eba01d59d54a53072f Signed-off-by: Rodrigo Obregon <robregon@ti.com>
-rw-r--r--drivers/gpu/pvr/omap4/sysconfig.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/pvr/omap4/sysconfig.c b/drivers/gpu/pvr/omap4/sysconfig.c
index fa78685d4dc..f08bf8e13fc 100644
--- a/drivers/gpu/pvr/omap4/sysconfig.c
+++ b/drivers/gpu/pvr/omap4/sysconfig.c
@@ -32,6 +32,10 @@
#include "syslocal.h"
#include "sysconfig.h"
+#include <linux/platform_device.h>
+#include <plat/omap_device.h>
+#include <plat/omap-pm.h>
+
#include "ocpdefs.h"
#if !defined(NO_HARDWARE) && \
@@ -40,6 +44,10 @@
#define SGX_OCP_REGS_ENABLED
#endif
+#if defined(LDM_PLATFORM) && !defined(SUPPORT_DRI_DRM)
+extern struct platform_device *gpsPVRLDMDev;
+#endif
+
SYS_DATA* gpsSysData = (SYS_DATA*)IMG_NULL;
SYS_DATA gsSysData;
@@ -411,6 +419,9 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
psDeviceNode = psDeviceNode->psNext;
}
+ omap_device_set_rate(&gpsPVRLDMDev->dev,
+ &gpsPVRLDMDev->dev, SYS_SGX_CLOCK_SPEED);
+
eError = EnableSystemClocksWrap(gpsSysData);
if (eError != PVRSRV_OK)
{