All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] HDMI: Split hdmi.c to seperate HDMI IP dependant code from DSS.
@ 2011-06-17  8:17 Mythri P K
  2011-06-17  8:17 ` [PATCH 1/8] OMAP4: DSS: HDMI: HDMI clean up to pass base_address Mythri P K
  2011-06-23  9:58 ` [PATCH 0/8] HDMI: Split hdmi.c to seperate HDMI IP dependant code from DSS Tomi Valkeinen
  0 siblings, 2 replies; 34+ messages in thread
From: Mythri P K @ 2011-06-17  8:17 UTC (permalink / raw)
  To: linux-omap, tomi.valkeinen; +Cc: Mythri P K

HDMI IP block is common between TI OMAP4 Procerssor and Netra processor although
the Display subsytem is different. Thus to reuse the code between these two
processors , HDMI IP dependant code is seperated out from hdmi.c and moved to
new library file hdmi_ti_4xxx_ip.c which now resides in /drivers/video a more
generic location out of omap2/dss folder.

This patch series does the split and also renames hdmi_omap4_panel.c to
hdmi_panel.c as that file has nothing specific to OMAP4 and can be reused for
other OMAP family of processors as well.

This is based on Tomi's DSS pmruntime-v2 branch:
git://gitorious.org/linux-omap-dss2/linux.git

Tree with the patches for verification is available in
http://gitorious.org/~mythripk/linux-omap-dss2/mythripk-linux-lo-dss2/commits/hdmi_pmrumtime

Mythri P K (8):
  OMAP4: DSS: HDMI: HDMI clean up to pass base_address     dynamically
    to IP dependant functions of HDMI
  OMAP4 : DSS : HDMI : Move the EDID portion from HDMI IP header
  OMAP4: DSS: HDMI: Use specific HDMI timings structure instead     of
    OMAP DSS timings
  OMAP4: DSS: HDMI: Move the common header file definition     to
    Include/video
  OMAP4: DSS2: HDMI: Split the HDMI driver to DSS and IP specific
    portion.
  OMAP4: DSS: HDMI: Rename the functions in HDMI IP library to IP
    specific name
  HDMI: Move HDMI IP Library from OMAP DSS to common  Video     
    directory for IP present in TI OMAP4, TI81xx,  TI38xx     
    Processor
  OMAP4: DSS: Rename hdmi_omap4_panel.c to hdmi_panel.c

 drivers/video/Kconfig                              |    7 +
 drivers/video/Makefile                             |    1 +
 drivers/video/hdmi_ti_4xxx_ip.c                    |  803 +++++++++++++++++
 drivers/video/hdmi_ti_4xxx_ip.h                    |  587 +++++++++++++
 drivers/video/omap2/dss/Kconfig                    |    1 +
 drivers/video/omap2/dss/Makefile                   |    2 +-
 drivers/video/omap2/dss/dss.h                      |   10 -
 drivers/video/omap2/dss/hdmi.c                     |  919 ++++----------------
 drivers/video/omap2/dss/hdmi.h                     |  631 --------------
 .../omap2/dss/{hdmi_omap4_panel.c => hdmi_panel.c} |    2 +-
 include/video/hdmi_ti_4xxx_ip.h                    |   94 ++
 11 files changed, 1641 insertions(+), 1416 deletions(-)
 create mode 100644 drivers/video/hdmi_ti_4xxx_ip.c
 create mode 100644 drivers/video/hdmi_ti_4xxx_ip.h
 delete mode 100644 drivers/video/omap2/dss/hdmi.h
 rename drivers/video/omap2/dss/{hdmi_omap4_panel.c => hdmi_panel.c} (99%)
 create mode 100644 include/video/hdmi_ti_4xxx_ip.h

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 34+ messages in thread
* [PATCH 3/8] OMAP4: DSS: HDMI: Use specific HDMI timings structure
@ 2011-06-22 11:55 Mythri P K
  0 siblings, 0 replies; 34+ messages in thread
From: Mythri P K @ 2011-06-22 11:55 UTC (permalink / raw)
  To: linux-fbdev

Define new HDMI timings structure to replace the OMAP DSS timing strucutre in hdmi.c
to have the HDMI include defintion out of DSS.

Signed-off-by: Mythri P K <mythripk@ti.com>
---
 drivers/video/omap2/dss/hdmi.c |   23 ++++++++++++++++++++---
 drivers/video/omap2/dss/hdmi.h |   15 ++++++++++++++-
 2 files changed, 34 insertions(+), 4 deletions(-)

diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 4ee879a..c24d573 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -593,6 +593,20 @@ static int read_edid(struct hdmi_ip_data *ip_data, u8 *pedid, u16 max_length)
 	return 0;
 }
 
+static void copy_hdmi_to_dss_timings(struct hdmi_video_timings hdmi_timings,
+			struct omap_video_timings *timings)
+{
+	timings->x_res = hdmi_timings.x_res;
+	timings->y_res = hdmi_timings.y_res;
+	timings->pixel_clock = hdmi_timings.pixel_clock;
+	timings->hbp = hdmi_timings.hbp;
+	timings->hfp = hdmi_timings.hfp;
+	timings->hsw = hdmi_timings.hsw;
+	timings->vbp = hdmi_timings.vbp;
+	timings->vfp = hdmi_timings.vfp;
+	timings->vsw = hdmi_timings.vsw;
+}
+
 static int get_timings_index(void)
 {
 	int code;
@@ -617,7 +631,7 @@ static struct hdmi_cm hdmi_get_code(struct omap_video_timings *timing)
 {
 	int i = 0, code = -1, temp_vsync = 0, temp_hsync = 0;
 	int timing_vsync = 0, timing_hsync = 0;
-	struct omap_video_timings temp;
+	struct hdmi_video_timings temp;
 	struct hdmi_cm cm = {-1};
 	DSSDBG("hdmi_get_code\n");
 
@@ -775,7 +789,8 @@ static void hdmi_read_edid(struct omap_video_timings *dp)
 
 	code = get_timings_index();
 
-	*dp = cea_vesa_timings[code].timings;
+	copy_hdmi_to_dss_timings(cea_vesa_timings[code].timings, dp);
+
 }
 
 static void hdmi_core_init(struct hdmi_core_video_config *video_cfg,
@@ -1234,7 +1249,9 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)
 		hdmi_read_edid(p);
 	}
 	code = get_timings_index();
-	dssdev->panel.timings = cea_vesa_timings[code].timings;
+	copy_hdmi_to_dss_timings(cea_vesa_timings[code].timings,
+			&dssdev->panel.timings);
+
 	update_hdmi_timings(&hdmi.cfg, p, code);
 
 	phy = p->pixel_clock;
diff --git a/drivers/video/omap2/dss/hdmi.h b/drivers/video/omap2/dss/hdmi.h
index f57ef4a..dcc30b7 100644
--- a/drivers/video/omap2/dss/hdmi.h
+++ b/drivers/video/omap2/dss/hdmi.h
@@ -188,9 +188,22 @@ struct hdmi_reg { u16 idx; };
 #define REG_GET(base, idx, start, end) \
 	FLD_GET(hdmi_read_reg(base, idx), start, end)
 
+struct hdmi_video_timings {
+	u16 x_res;
+	u16 y_res;
+	/* Unit: KHz */
+	u32 pixel_clock;
+	u16 hsw;
+	u16 hfp;
+	u16 hbp;
+	u16 vsw;
+	u16 vfp;
+	u16 vbp;
+};
+
 /* HDMI timing structure */
 struct hdmi_timings {
-	struct omap_video_timings timings;
+	struct hdmi_video_timings timings;
 	int vsync_pol;
 	int hsync_pol;
 };
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2011-07-01 12:43 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17  8:17 [PATCH 0/8] HDMI: Split hdmi.c to seperate HDMI IP dependant code from DSS Mythri P K
2011-06-17  8:17 ` [PATCH 1/8] OMAP4: DSS: HDMI: HDMI clean up to pass base_address Mythri P K
2011-06-17  8:17   ` [PATCH 2/8] OMAP4 : DSS : HDMI : Move the EDID portion from HDMI IP Mythri P K
2011-06-17  8:17     ` [PATCH 3/8] OMAP4: DSS: HDMI: Use specific HDMI timings structure Mythri P K
2011-06-17  8:17       ` [PATCH 4/8] OMAP4: DSS: HDMI: Move the common header file definition Mythri P K
2011-06-17  8:17         ` [PATCH 5/8] OMAP4: DSS2: HDMI: Split the HDMI driver to DSS and IP Mythri P K
2011-06-17  8:17           ` [PATCH 6/8] OMAP4: DSS: HDMI: Rename the functions in HDMI IP Mythri P K
2011-06-17  8:17             ` [PATCH 7/8] HDMI: Move HDMI IP Library from OMAP DSS to common Mythri P K
2011-06-17  8:17               ` [PATCH 8/8] OMAP4: DSS: Rename hdmi_omap4_panel.c to hdmi_panel.c Mythri P K
2011-06-20 13:48           ` [PATCH 5/8] OMAP4: DSS2: HDMI: Split the HDMI driver to DSS and IP Premi, Sanjeev
2011-06-23  5:55             ` K, Mythri P
2011-06-20 12:46       ` [PATCH 3/8] OMAP4: DSS: HDMI: Use specific HDMI timings structure Premi, Sanjeev
2011-06-23  5:45         ` K, Mythri P
2011-06-23  8:30       ` Tomi Valkeinen
2011-06-23  8:46         ` K, Mythri P
2011-06-20 13:33   ` [PATCH 1/8] OMAP4: DSS: HDMI: HDMI clean up to pass base_address Premi, Sanjeev
2011-06-23  5:51     ` K, Mythri P
2011-06-23 10:30       ` Premi, Sanjeev
2011-06-23 11:00         ` K, Mythri P
2011-06-23 11:03           ` Premi, Sanjeev
2011-06-23 11:09             ` K, Mythri P
2011-06-23  9:58 ` [PATCH 0/8] HDMI: Split hdmi.c to seperate HDMI IP dependant code from DSS Tomi Valkeinen
2011-06-23 12:05   ` K, Mythri P
2011-06-23 12:31     ` Tomi Valkeinen
2011-06-27  5:51       ` K, Mythri P
2011-06-27 12:58         ` Tomi Valkeinen
2011-06-29 13:38           ` K, Mythri P
2011-06-29 16:21             ` Tomi Valkeinen
2011-06-30 17:46               ` K, Mythri P
2011-07-01  8:51                 ` Tomi Valkeinen
2011-07-01  9:22                   ` K, Mythri P
2011-07-01 11:44                     ` Tomi Valkeinen
2011-07-01 12:43                       ` K, Mythri P
  -- strict thread matches above, loose matches on Subject: below --
2011-06-22 11:55 [PATCH 3/8] OMAP4: DSS: HDMI: Use specific HDMI timings structure Mythri P K

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.