From: inki.dae@samsung•com (InKi Dae)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 1/3] FB: Add some members for CPU Interface.
Date: Tue, 29 Jun 2010 19:49:33 +0900 [thread overview]
Message-ID: <4C29CFBD.3040205@samsung.com> (raw)
CPU interface needs cs, wr setup, wr act and hold delay.
I added some members for them to common framework.
Signed-off-by: InKi Dae <inki.dae at samsung.com <mailto:p.osciak@samsung•com>>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com
<mailto:kyungmin.park@samsung•com>>
---
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c
index 0a4dbdc..74122d1 100644
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -759,6 +759,27 @@ void fb_videomode_to_var(struct fb_var_screeninfo *var,
}
/**
+ * fb_cpumode_to_var - convert fb_cpumode to fb_var_screeninfo
+ * @var: pointer to struct fb_var_screeninfo
+ * @mode: pointer to struct fb_cpumode
+ */
+void fb_cmdmode_to_var(struct fb_var_screeninfo *var,
+ const struct fb_cmdmode *mode)
+{
+ var->xres = mode->xres;
+ var->yres = mode->yres;
+ var->xres_virtual = mode->xres;
+ var->yres_virtual = mode->yres;
+ var->xoffset = 0;
+ var->yoffset = 0;
+ var->pixclock = mode->pixclock;
+ var->cs_setup = mode->cs_setup;
+ var->wr_setup = mode->wr_setup;
+ var->wr_act = mode->wr_act;
+ var->wr_hold = mode->wr_hold;
+}
+
+/**
* fb_mode_is_equal - compare 2 videomodes
* @mode1: first videomode
* @mode2: second videomode
@@ -1048,6 +1069,7 @@ finished:
EXPORT_SYMBOL(fb_find_best_display);
EXPORT_SYMBOL(fb_videomode_to_var);
+EXPORT_SYMBOL(fb_cmdmode_to_var);
EXPORT_SYMBOL(fb_var_to_videomode);
EXPORT_SYMBOL(fb_mode_is_equal);
EXPORT_SYMBOL(fb_add_videomode);
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 907ace3..73381c3 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -269,6 +269,12 @@ struct fb_var_screeninfo {
__u32 vmode; /* see FB_VMODE_* */
__u32 rotate; /* angle we rotate counter clockwise */
__u32 reserved[5]; /* Reserved for future compatibility */
+
+ /* For cpu interface timing. */
+ __u32 cs_setup;
+ __u32 wr_setup;
+ __u32 wr_act;
+ __u32 wr_hold;
};
struct fb_cmap {
@@ -1117,11 +1123,24 @@ struct fb_videomode {
u32 lower_margin;
u32 hsync_len;
u32 vsync_len;
+ u32 cmd_allow_len;
u32 sync;
u32 vmode;
u32 flag;
};
+struct fb_cmdmode {
+ const char *name; /* optional */
+ u32 refresh; /* optional */
+ u32 xres;
+ u32 yres;
+ u32 pixclock;
+ u32 cs_setup;
+ u32 wr_setup;
+ u32 wr_act;
+ u32 wr_hold;
+};
+
extern const char *fb_mode_option;
extern const struct fb_videomode vesa_modes[];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100629/17de1d8e/attachment-0001.html>
next reply other threads:[~2010-06-29 10:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 10:49 InKi Dae [this message]
2010-06-30 0:02 ` [PATCH 1/3] FB: Add some members for CPU Interface Jaya Kumar
2010-06-30 4:36 ` InKi Dae
2010-07-01 23:47 ` Jaya Kumar
2010-07-02 7:30 ` Russell King - ARM Linux
2010-07-05 8:42 ` Pawel Osciak
-- strict thread matches above, loose matches on Subject: below --
2010-07-02 7:50 In-Ki Dae
2010-07-06 16:09 ` James Simmons
2010-07-02 2:35 In-Ki Dae
2010-07-02 1:51 In-Ki Dae
2010-07-02 1:21 In-Ki Dae
2010-07-02 1:46 ` Andrew Morton
2010-06-29 8:31 [PATCH 0/3] ARM: S5PV210: Add MIPI-DSI support InKi Dae
[not found] ` <4C29B1C1.2000209@samsung.com>
[not found] ` <4C29CABE.9020208@samsung.com>
2010-07-01 22:26 ` [PATCH 1/3] FB: Add some members for CPU Interface Andrew Morton
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=4C29CFBD.3040205@samsung.com \
--to=inki.dae@samsung$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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