From: Michael Olbrich <m.olbrich@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Michael Olbrich <m.olbrich@pengutronix.de>
Subject: [PATCH 2/3] friendlyarm-mini2440: add support for the W35 display
Date: Tue, 24 Feb 2015 15:53:49 +0100 [thread overview]
Message-ID: <1424789630-10461-2-git-send-email-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <1424789630-10461-1-git-send-email-m.olbrich@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-02-24 14:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 14:53 [PATCH 1/3] ARM Samsung: fix booting from NAND without pbl Michael Olbrich
2015-02-24 14:53 ` Michael Olbrich [this message]
2015-02-25 7:36 ` [PATCH 2/3] friendlyarm-mini2440: add support for the W35 display Sascha Hauer
2015-02-24 14:53 ` [PATCH 3/3] ARM Samsung: add simple NAND barebox update handler Michael Olbrich
2015-02-25 7:34 ` Sascha Hauer
2015-02-25 16:48 ` [PATCH] " Michael Olbrich
2015-02-26 5:58 ` Sascha Hauer
2015-02-25 7:31 ` [PATCH 1/3] ARM Samsung: fix booting from NAND without pbl Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424789630-10461-2-git-send-email-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox