summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Balagopalakrishnan2013-10-04 06:48:15 -0500
committerAnand Balagopalakrishnan2013-10-04 06:48:15 -0500
commit933dae13fb2dc976d6040b8dfde14b9767f0231d (patch)
treeb33e7f1f9b74d2f53c26d1edc37caf0dd3316476
parent25b114d0466aa89b83e640e9a0dd04f7d7b0fab1 (diff)
parent86a4ffae3458c51f0a58e44b17b7a4fd92d2b8c6 (diff)
downloadomap5-sgx-ddk-linux-933dae13fb2dc976d6040b8dfde14b9767f0231d.tar.gz
omap5-sgx-ddk-linux-933dae13fb2dc976d6040b8dfde14b9767f0231d.tar.xz
omap5-sgx-ddk-linux-933dae13fb2dc976d6040b8dfde14b9767f0231d.zip
Merge branch 'master' of git.ti.com:graphics/omap5-sgx-ddk-linux
-rw-r--r--eurasia_km/services4/srvkm/env/linux/module.c15
-rw-r--r--eurasia_km/services4/system/omap5/syslocal.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/eurasia_km/services4/srvkm/env/linux/module.c b/eurasia_km/services4/srvkm/env/linux/module.c
index e071749..0050780 100644
--- a/eurasia_km/services4/srvkm/env/linux/module.c
+++ b/eurasia_km/services4/srvkm/env/linux/module.c
@@ -89,6 +89,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
89#include <linux/fs.h> 89#include <linux/fs.h>
90#include <linux/proc_fs.h> 90#include <linux/proc_fs.h>
91 91
92#ifdef CONFIG_OF
93#include <linux/of.h>
94#endif
95
92#if defined(SUPPORT_DRI_DRM) 96#if defined(SUPPORT_DRI_DRM)
93#include <drm/drmP.h> 97#include <drm/drmP.h>
94#if defined(PVR_SECURE_DRM_AUTH_EXPORT) 98#if defined(PVR_SECURE_DRM_AUTH_EXPORT)
@@ -262,10 +266,21 @@ static struct platform_device_id powervr_id_table[] = {
262#endif 266#endif
263 267
264#if defined(SUPPORT_DRI_DRM_EXTERNAL) || !defined(SUPPORT_DRI_DRM) 268#if defined(SUPPORT_DRI_DRM_EXTERNAL) || !defined(SUPPORT_DRI_DRM)
269#ifdef CONFIG_OF
270static const struct of_device_id omap_gpu_id_table[] = {
271 { .compatible = "ti,omap4-gpu" },
272 {}
273};
274MODULE_DEVICE_TABLE(of, omap_gpu_id_table);
275#endif
276
265static LDM_DRV powervr_driver = { 277static LDM_DRV powervr_driver = {
266#if defined(PVR_LDM_PLATFORM_MODULE) 278#if defined(PVR_LDM_PLATFORM_MODULE)
267 .driver = { 279 .driver = {
268 .name = DRVNAME, 280 .name = DRVNAME,
281#ifdef CONFIG_OF
282 .of_match_table = of_match_ptr(omap_gpu_id_table),
283#endif
269 }, 284 },
270#endif 285#endif
271#if defined(PVR_LDM_PCI_MODULE) 286#if defined(PVR_LDM_PCI_MODULE)
diff --git a/eurasia_km/services4/system/omap5/syslocal.h b/eurasia_km/services4/system/omap5/syslocal.h
index c8c6cb6..5e97862 100644
--- a/eurasia_km/services4/system/omap5/syslocal.h
+++ b/eurasia_km/services4/system/omap5/syslocal.h
@@ -85,7 +85,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
85#endif 85#endif
86 86
87#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) 87#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
88#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
88#include <linux/platform_data/omap-gpu.h> 89#include <linux/platform_data/omap-gpu.h>
90#endif
89#if !defined(PVR_NO_OMAP_TIMER) 91#if !defined(PVR_NO_OMAP_TIMER)
90#define PVR_OMAP_USE_DM_TIMER_API 92#define PVR_OMAP_USE_DM_TIMER_API
91#include <plat/dmtimer.h> 93#include <plat/dmtimer.h>