OMAPDSS: OMAPLFB: Enable OMAPLFB for compilation
authorDandawate Saket <dsaket@ti.com>
Sat, 13 Apr 2013 18:45:09 +0000 (11:45 -0700)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:45:13 +0000 (17:45 -0500)
Fix compilation error and enable omaplfb.

Change-Id: Id641a0ece2f73f146bd843baa12d6092e4290027
Signed-off-by: Dandawate Saket <dsaket@ti.com>
Conflicts:
arch/arm/configs/android_omap_defconfig
drivers/video/omap2/omapfb/Kconfig

arch/arm/configs/android_dra7_defconfig [changed mode: 0755->0644]
drivers/video/omap2/omapfb/Kconfig
drivers/video/omap2/omapfb/omapfb.h
drivers/video/omap2/omaplfb/omaplfb_linux.c
include/linux/omapfb.h

old mode 100755 (executable)
new mode 100644 (file)
index 1466761..f4330a1
@@ -200,6 +200,7 @@ CONFIG_OMAP2_DSS_RFBI=y
 CONFIG_OMAP2_DSS_SDI=y
 CONFIG_OMAP2_DSS_DSI=y
 CONFIG_FB_OMAP2=y
+CONFIG_OMAPLFB=y
 CONFIG_PANEL_GENERIC_DPI=y
 CONFIG_PANEL_TFP410=y
 CONFIG_PANEL_LGPHILIPS_LB035Q02=y
index e612028980a803499e93565a522598c620960a6c..17cbb3f03e467894e65d6524e5886d64a613f36d 100644 (file)
@@ -1,6 +1,6 @@
 menuconfig FB_OMAP2
         tristate "OMAP2+ frame buffer support"
-        depends on FB && OMAP2_DSS
+        depends on FB && OMAP2_DSS && !DRM_OMAP_DISPLAY
 
        select OMAP2_VRFB if ARCH_OMAP2 || ARCH_OMAP3
         select FB_CFB_FILLRECT
index b41188d06e8454136988008f9c507d010fcd1433..6e45f984563d8680626d5044d0736c8a03633b30 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/rwsem.h>
 #include <linux/dma-attrs.h>
 #include <linux/dma-mapping.h>
-
+#include <video/omapvrfb.h>
 #include <video/omapdss.h>
 
 #ifdef DEBUG
index 7a5cd8013140b20e0bb938333a51e43940db0b30..7b674bdce1eecb49baafc83ad42e49396d1e9f25 100644 (file)
@@ -102,7 +102,7 @@ MODULE_SUPPORTED_DEVICE(DEVNAME);
 #if !defined(PVR_OMAPLFB_DRM_FB)
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
 #define OMAP_DSS_DRIVER(drv, dev) struct omap_dss_driver *drv = (dev) != NULL ? (dev)->driver : NULL
-#define OMAP_DSS_MANAGER(man, dev) struct omap_overlay_manager *man = (dev) != NULL ? (dev)->manager : NULL
+#define OMAP_DSS_MANAGER(man, dev) struct omap_overlay_manager *man = (dev) != NULL ? (dev)->output->manager : NULL
 #define        WAIT_FOR_VSYNC(man)     ((man)->wait_for_vsync)
 #else
 #define OMAP_DSS_DRIVER(drv, dev) struct omap_dss_device *drv = (dev)
index e018d1cb4e8271babef0769195ff02c176da53e8..5605c9b977bd389a24e7d7c76b99411ed5ff932f 100644 (file)
@@ -65,4 +65,9 @@ extern void omapfb_set_platform_data(struct omapfb_platform_data *data);
 
 void __init omapfb_set_lcd_config(const struct omap_lcd_config *config);
 
+/* helper methods that may be used by other modules */
+enum omap_color_mode;
+int omapfb_mode_to_dss_mode(struct fb_var_screeninfo *var,
+                       enum omap_color_mode *mode);
+
 #endif /* __OMAPFB_H */