diff options
-rw-r--r-- | drivers/gpu/pvr/omap4/sysconfig.c | 11 |
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 @@ | |||
32 | #include "syslocal.h" | 32 | #include "syslocal.h" |
33 | #include "sysconfig.h" | 33 | #include "sysconfig.h" |
34 | 34 | ||
35 | #include <linux/platform_device.h> | ||
36 | #include <plat/omap_device.h> | ||
37 | #include <plat/omap-pm.h> | ||
38 | |||
35 | #include "ocpdefs.h" | 39 | #include "ocpdefs.h" |
36 | 40 | ||
37 | #if !defined(NO_HARDWARE) && \ | 41 | #if !defined(NO_HARDWARE) && \ |
@@ -40,6 +44,10 @@ | |||
40 | #define SGX_OCP_REGS_ENABLED | 44 | #define SGX_OCP_REGS_ENABLED |
41 | #endif | 45 | #endif |
42 | 46 | ||
47 | #if defined(LDM_PLATFORM) && !defined(SUPPORT_DRI_DRM) | ||
48 | extern struct platform_device *gpsPVRLDMDev; | ||
49 | #endif | ||
50 | |||
43 | SYS_DATA* gpsSysData = (SYS_DATA*)IMG_NULL; | 51 | SYS_DATA* gpsSysData = (SYS_DATA*)IMG_NULL; |
44 | SYS_DATA gsSysData; | 52 | SYS_DATA gsSysData; |
45 | 53 | ||
@@ -411,6 +419,9 @@ PVRSRV_ERROR SysInitialise(IMG_VOID) | |||
411 | psDeviceNode = psDeviceNode->psNext; | 419 | psDeviceNode = psDeviceNode->psNext; |
412 | } | 420 | } |
413 | 421 | ||
422 | omap_device_set_rate(&gpsPVRLDMDev->dev, | ||
423 | &gpsPVRLDMDev->dev, SYS_SGX_CLOCK_SPEED); | ||
424 | |||
414 | eError = EnableSystemClocksWrap(gpsSysData); | 425 | eError = EnableSystemClocksWrap(gpsSysData); |
415 | if (eError != PVRSRV_OK) | 426 | if (eError != PVRSRV_OK) |
416 | { | 427 | { |