summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxs/device.c
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2010-01-27 21:57:21 +0800
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:13:35 +0200
commit93d8cc863026587589dd6bc97f5b49340a048d3f (patch)
treeb32f4935e5df93e9179cdb88441df02e9e633fa1 /arch/arm/plat-mxs/device.c
parentc24986360fa6ca2e5ce49b78191e14549b29d4af (diff)
ENGR00117728-2 MX28 Add lcdif and framebuffer driver support
add lcdif, fb, lcd controller(43wvf1g) driver Signed-off-by: Robby Cai <R63905@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/plat-mxs/device.c')
-rw-r--r--arch/arm/plat-mxs/device.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/arch/arm/plat-mxs/device.c b/arch/arm/plat-mxs/device.c
index ecac9258cf28..a24862b12af8 100644
--- a/arch/arm/plat-mxs/device.c
+++ b/arch/arm/plat-mxs/device.c
@@ -185,6 +185,18 @@ static struct platform_device mxs_fec[] = {
};
#endif
+#if defined(CONFIG_FB_MXS) || defined(CONFIG_FB_MXS_MODULE)
+static struct platform_device mxs_fb = {
+ .name = "mxs-fb",
+ .id = 0,
+ .dev = {
+ .dma_mask = &common_dmamask,
+ .coherent_dma_mask = DMA_BIT_MASK(32),
+ .release = mxs_nop_release,
+ },
+};
+#endif
+
#if defined(CONFIG_BACKLIGHT_MXS) || \
defined(CONFIG_BACKLIGHT_MXS_MODULE)
struct platform_device mxs_bl = {
@@ -286,7 +298,13 @@ static struct mxs_dev_lookup dev_lookup[] = {
.pdev = &mxs_rtc,
},
#endif
-
+#if defined(CONFIG_FB_MXS) || defined(CONFIG_FB_MXS_MODULE)
+ {
+ .name = "mxs-fb",
+ .size = 1,
+ .pdev = &mxs_fb,
+ },
+#endif
#if defined(CONFIG_BACKLIGHT_MXS) || \
defined(CONFIG_BACKLIGHT_MXS_MODULE)
{