[PATCH 2/3] friendlyarm-mini2440: add support for the W35 display
Michael Olbrich
m.olbrich at pengutronix.de
Tue Feb 24 06:53:49 PST 2015
Signed-off-by: Michael Olbrich <m.olbrich at pengutronix.de>
---
I'm not quite sure about the sync flags. I tried to match what the kernel
does and it looks correct here.
Michael
arch/arm/boards/friendlyarm-mini2440/Kconfig | 6 ++++++
arch/arm/boards/friendlyarm-mini2440/mini2440.c | 17 +++++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/arch/arm/boards/friendlyarm-mini2440/Kconfig b/arch/arm/boards/friendlyarm-mini2440/Kconfig
index a8e79b3b076b..feb905e96e33 100644
--- a/arch/arm/boards/friendlyarm-mini2440/Kconfig
+++ b/arch/arm/boards/friendlyarm-mini2440/Kconfig
@@ -25,4 +25,10 @@ config MINI2440_VIDEO_SVGA
help
This adds support for MINI2440 SVGA (1024x768) video output adapter.
+config MINI2440_VIDEO_W35
+ bool "Support W35 display (320x240)"
+ select MINI2440_VIDEO
+ help
+ This adds support for Sharp 3.5 inch TFT display.
+
endif
diff --git a/arch/arm/boards/friendlyarm-mini2440/mini2440.c b/arch/arm/boards/friendlyarm-mini2440/mini2440.c
index 2dcb7db4dbde..af6da72d3a2f 100644
--- a/arch/arm/boards/friendlyarm-mini2440/mini2440.c
+++ b/arch/arm/boards/friendlyarm-mini2440/mini2440.c
@@ -116,6 +116,23 @@ static struct fb_videomode s3c24x0_fb_modes[] = {
.vmode = FB_VMODE_NONINTERLACED,
},
#endif
+#ifdef CONFIG_MINI2440_VIDEO_W35
+ {
+ .name = "W35",
+ .refresh = 60,
+ .xres = 320,
+ .left_margin = 68,
+ .right_margin = 66,
+ .hsync_len = 4,
+ .yres = 240,
+ .upper_margin = 4,
+ .lower_margin = 4,
+ .vsync_len = 9,
+ .pixclock = 115913,
+ .sync = FB_SYNC_USE_PWREN | FB_SYNC_CLK_INVERT,
+ .vmode = FB_VMODE_NONINTERLACED,
+ },
+#endif
};
static struct s3c_fb_platform_data s3c24x0_fb_data = {
--
2.1.4
More information about the barebox
mailing list