OMAPDSS: HDMI: Add support for OMAP5 HDMI core IP driver
cover OMAPDSS: HDMI: Add support for OMAP5 HDMI core IP driver
From: Mythri P K <[email protected]>
Add basic functionality support for HDMI OMAP5 core driver. Across OMAP4 and OMAP5 HDMI core IP block differs where as the PHY, PLL and the wrapper blocks are reused, using the existing framework and extention to support OMAP5 core driver is added.
Mythri P K (2):
OMAPDSS: HDMI: Make Wrapper function non-static
OMAPDSS: HDMI: Add support for OMAP5 HDMI core library in DSS
drivers/video/omap2/dss/ti_hdmi.h | 2 + drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c | 10 +- drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h | 9 + drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c | 341 +++++++++++++++++++++++++++++ drivers/video/omap2/dss/ti_hdmi_5xxx_ip.h | 254 +++++++++++++++++++++ 5 files changed, 611 insertions(+), 5 deletions(-) create mode 100644 drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c create mode 100644 drivers/video/omap2/dss/ti_hdmi_5xxx_ip.h
Signature · 1 line
1.7.5.4
PATCH 1/2 OMAPDSS: HDMI: Make Wrapper function non-static
From: Mythri P K <[email protected]>
HDMI wrapper is same across OMAP4 and OMAP5, so the wrapper functions can be re-used. Thus making wrapper functions as non-static.
--- drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c | 10 +++++----- drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h | 9 +++++++++ 2 files changed, 14 insertions(+), 5 deletions(-)
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c +5 -5
@@ -721,7 +721,7 @@ static void hdmi_core_av_packet_config(struct hdmi_ip_data *ip_data, (repeat_cfg.generic_pkt_repeat)); } -static void hdmi_wp_init (struct omap_video_timings *timings, +void hdmi_wp_init (struct omap_video_timings *timings,struct hdmi_video_format *video_fmt) {pr_debug ("Enter hdmi_wp_init\n" );
@@ -744,7 +744,7 @@ void ti_hdmi_4xxx_wp_video_start(struct hdmi_ip_data *ip_data, bool start)REG_FLD_MOD (hdmi_wp_base (ip_data),HDMI_WP_VIDEO_CFG , start,31 ,31 ); } -static void hdmi_wp_video_init_format (struct hdmi_video_format *video_fmt, +void hdmi_wp_video_init_format (struct hdmi_video_format *video_fmt,struct omap_video_timings *timings,struct hdmi_config *param) {pr_debug ("Enter hdmi_wp_video_init_format\n" );
@@ -760,7 +760,7 @@ static void hdmi_wp_video_init_format(struct hdmi_video_format *video_fmt, timings->vsw = param->timings.vsw; } -static void hdmi_wp_video_config_format (struct hdmi_ip_data *ip_data, +void hdmi_wp_video_config_format (struct hdmi_ip_data *ip_data,struct hdmi_video_format *video_fmt) {u32 l =0 ;
@@ -773,7 +773,7 @@ static void hdmi_wp_video_config_format(struct hdmi_ip_data *ip_data,hdmi_write_reg (hdmi_wp_base (ip_data),HDMI_WP_VIDEO_SIZE , l); } -static void hdmi_wp_video_config_interface (struct hdmi_ip_data *ip_data) +void hdmi_wp_video_config_interface (struct hdmi_ip_data *ip_data) {u32 r;pr_debug ("Enter hdmi_wp_video_config_interface\n" );
@@ -786,7 +786,7 @@ static void hdmi_wp_video_config_interface(struct hdmi_ip_data *ip_data)hdmi_write_reg (hdmi_wp_base (ip_data),HDMI_WP_VIDEO_CFG , r); } -static void hdmi_wp_video_config_timing (struct hdmi_ip_data *ip_data, +void hdmi_wp_video_config_timing (struct hdmi_ip_data *ip_data,struct omap_video_timings *timings) {u32 timing_h =0 ;
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h +9 -0
@@ -542,4 +542,13 @@ void hdmi_wp_audio_config_dma(struct hdmi_ip_data *ip_data,void hdmi_wp_audio_config_format (struct hdmi_ip_data *ip_data,struct hdmi_audio_format *aud_fmt);#endif +void hdmi_wp_video_config_timing (struct hdmi_ip_data *ip_data, +struct omap_video_timings *timings); +void hdmi_wp_video_config_interface (struct hdmi_ip_data *ip_data); +void hdmi_wp_video_config_format (struct hdmi_ip_data *ip_data, +struct hdmi_video_format *video_fmt); +void hdmi_wp_video_init_format (struct hdmi_video_format *video_fmt, +struct omap_video_timings *timings,struct hdmi_config *param); +void hdmi_wp_init (struct omap_video_timings *timings, +struct hdmi_video_format *video_fmt);#endif
Signature · 1 line
1.7.5.4
PATCH 2/2 OMAPDSS: HDMI: Add support for OMAP5 HDMI core library
From: Mythri P K <[email protected]>
Add support for configuration of the basic HDMI OMAP5 core IP driver.HDMI shares the wrapper, PHY and PLL code with OMAP4.
--- drivers/video/omap2/dss/ti_hdmi.h | 2 + drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c | 341 +++++++++++++++++++++++++++++ drivers/video/omap2/dss/ti_hdmi_5xxx_ip.h | 254 +++++++++++++++++++++ 3 files changed, 597 insertions(+), 0 deletions(-) create mode 100644 drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c create mode 100644 drivers/video/omap2/dss/ti_hdmi_5xxx_ip.h
drivers/video/omap2/dss/ti_hdmi.h +2 -0
@@ -185,4 +185,6 @@ void ti_hdmi_4xxx_phy_dump(struct hdmi_ip_data *ip_data, struct seq_file *s);defined (CONFIG_SND_OMAP_SOC_OMAP4_HDMI_MODULE) void ti_hdmi_4xxx_wp_audio_enable(struct hdmi_ip_data *ip_data, bool enable);#endif +void ti_hdmi_5xxx_basic_configure (struct hdmi_ip_data *ip_data); +void ti_hdmi_5xxx_core_dump (struct hdmi_ip_data *ip_data,struct seq_file *s);#endif
drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c new file +341 -0
341 lines not on this page · raw message
drivers/video/omap2/dss/ti_hdmi_5xxx_ip.h new file +254 -0
254 lines not on this page · raw message
Signature · 1 line
1.7.5.4