diff options
author | Hemant Hariyani <hemanthariyani@ti.com> | 2011-08-25 08:03:58 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-08-25 08:03:58 +0100 |
commit | 04640d37164296ba2956a4537ccc3a6816235b08 (patch) | |
tree | c39db1cecdb456fb4277f539bd9160b7809ad6d8 | |
parent | 4c9646ef20ebb12097f384c68479ad3dff069742 (diff) |
Subject: [PATCH 5/5] OMAP4: SGX-KM: Enable DRM support in SGX Driver
This patch enables DRM support in SGX driver.
Change-Id: I346589d12ef685a4b33b56842d86fcf8c5fdc718
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
-rw-r--r-- | drivers/gpu/pvr/Makefile | 10 | ||||
-rw-r--r-- | drivers/gpu/pvr/pvr_drm.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/drivers/gpu/pvr/Makefile b/drivers/gpu/pvr/Makefile index 725688b4666..ac70d350e3f 100644 --- a/drivers/gpu/pvr/Makefile +++ b/drivers/gpu/pvr/Makefile @@ -94,6 +94,13 @@ ccflags-$(CONFIG_SGX_PDUMP) += -Idrivers/gpu/pvr/pdump \ -DPDUMP \ -DSUPPORT_DBGDRV_EVENT_OBJECTS +ccflags-$(CONFIG_DRM) += \ + -DSUPPORT_DRI_DRM \ + -DPVR_SECURE_DRM_AUTH_EXPORT \ + -DPVR_DRI_DRM_PLATFORM_DEV \ + -DPVR_LDM_PLATFORM_PRE_REGISTERED \ + -DPVR_DISPLAY_CONTROLLER_DRM_IOCTL + pvr_common-y := \ osfunc.o \ mutils.o \ @@ -127,6 +134,9 @@ pvr_common-y := \ mem_debug.o \ osfunc_common.o +pvr_common-$(CONFIG_DRM) += \ + pvr_drm.o + pvr540-$(CONFIG_SGX540) := \ omap4/sysconfig.o \ omap4/sysutils.o diff --git a/drivers/gpu/pvr/pvr_drm.c b/drivers/gpu/pvr/pvr_drm.c index ed5a0ba5681..d75e46215b8 100644 --- a/drivers/gpu/pvr/pvr_drm.c +++ b/drivers/gpu/pvr/pvr_drm.c @@ -459,7 +459,7 @@ static void __exit PVRSRVDrmExit(void) #endif } -module_init(PVRSRVDrmInit); +late_initcall(PVRSRVDrmInit); module_exit(PVRSRVDrmExit); #endif #endif |