From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "K, Mythri P" <mythripk@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH v3 4/9] OMAP4 : DSS2 : HDMI: HDMI driver header file addition
Date: Mon, 7 Mar 2011 10:54:10 +0200 [thread overview]
Message-ID: <1299488050.2281.92.camel@deskari> (raw)
In-Reply-To: <1299224907-11354-5-git-send-email-mythripk@ti.com>
On Fri, 2011-03-04 at 01:48 -0600, K, Mythri P wrote:
> Adding the hdmi interface driver header file (hdmi.h) to the dss driver.
> Register and timing declaration to be used by the corresponding c file
> is added in this file.
>
> Signed-off-by: Mythri P K <mythripk@ti.com>
> ---
> drivers/video/omap2/dss/hdmi.h | 444 ++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 444 insertions(+), 0 deletions(-)
> create mode 100644 drivers/video/omap2/dss/hdmi.h
<snip>
> +struct hdmi_video_format {
> + enum hdmi_packing_mode packing_mode;
> + u32 y_res; /* Line per panel */
> + u32 x_res; /* pixel per line */
> +};
> +
> +struct hdmi_video_interface {
> + int vsp; /* Vsync polarity */
> + int hsp; /* Hsync polarity */
> + int interlacing;
> + int tm; /* Timing mode */
> +};
> +
> +struct hdmi_video_timing {
> + u32 hbp;
> + u32 hfp;
> + u32 hsw;
> + u32 vbp;
> + u32 vfp;
> + u32 vsw;
> +};
> +
> +struct hdmi_config {
> + u16 ppl; /* pixel per line */
> + u16 lpp; /* line per panel */
> + u32 pixel_clock;
> + u16 hsw; /* Horizontal sync pulse width */
> + u16 hfp; /* Horizontal front porch */
> + u16 hbp; /* Horizontal back porch */
> + u16 vsw; /* Vertical sync pulse width */
> + u16 vfp; /* Vertical front porch */
> + u16 vbp; /* Vertical back porch */
> + u16 interlace;
> + u16 h_pol;
> + u16 v_pol;
> + u16 hdmi_dvi;
> + u16 video_format;
> +};
I haven't really read through the hdmi code (as it doesn't apply to my
tree), but it looks quite strange to have multiple structs with
overlapping information. And then there's also the struct
omap_video_timings, which contains similar stuff.
So, could the hdmi_config use hdmi_video_timing, hdmi_video_interface
and hdmi_video_format structs? Can omap_video_timings be used here?
Should omap_video_timings be modified somehow to suit HDMI better?
> +
> +struct hdmi_cm {
> + int code;
> + int mode;
> +};
> +
> +struct hdmi_irq_vector {
> + u8 pll_recal;
> + u8 pll_unlock;
> + u8 pll_lock;
> + u8 phy_disconnect;
> + u8 phy_connect;
> + u8 phy_short_5v;
> + u8 video_end_fr;
> + u8 video_vsync;
> + u8 fifo_sample_req;
> + u8 fifo_overflow;
> + u8 fifo_underflow;
> + u8 ocp_timeout;
> + u8 core;
> +};
This struct is not used.
Tomi
next prev parent reply other threads:[~2011-03-07 8:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-04 7:48 [PATCH v3 0/9] OMAP4 : DSS2 : HDMI support on OMAP4 Mythri P K
2011-03-04 7:48 ` [PATCH v3 1/9] OMAP4 : DSS2 : Add display type HDMI to DSS2 Mythri P K
2011-03-04 7:48 ` [PATCH v3 2/9] OMAP4 : DSS2 : HDMI: Select between HDMI VENC clock source Mythri P K
2011-03-04 7:48 ` [PATCH v3 3/9] OMAP4 : DSS2 : HDMI: HDMI dispc gamma table disable Mythri P K
2011-03-04 7:48 ` [PATCH v3 4/9] OMAP4 : DSS2 : HDMI: HDMI driver header file addition Mythri P K
2011-03-07 8:54 ` Tomi Valkeinen [this message]
2011-03-04 7:48 ` [PATCH v3 5/9] " Mythri P K
2011-03-07 9:46 ` Tomi Valkeinen
2011-03-08 8:17 ` K, Mythri P
2011-03-08 8:24 ` Tomi Valkeinen
2011-03-04 7:48 ` [PATCH v3 6/9] OMAP4 : DSS2 : HDMI: HDMI panel driver addition in the DSS Mythri P K
2011-03-07 10:12 ` Tomi Valkeinen
2011-03-04 7:48 ` [PATCH v3 7/9] OMAP4 : DSS : HDMI: Call to HDMI module init to register driver Mythri P K
2011-03-04 7:48 ` [PATCH v3 8/9] OMAP4 : HDMI : Add HDMI structure in the board file for OMAP4 SDP Mythri P K
2011-03-04 7:48 ` [PATCH v3 9/9] OMAP4 : HDMI : Add HDMI structure in the board file for OMAP4 PANDA Mythri P K
2011-03-07 8:40 ` [PATCH v3 0/9] OMAP4 : DSS2 : HDMI support on OMAP4 Tomi Valkeinen
2011-03-08 8:08 ` K, Mythri P
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=1299488050.2281.92.camel@deskari \
--to=tomi.valkeinen@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=mythripk@ti.com \
/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