OMAPDSS: HDMI: Fix AVI infoframe bug

Fix the AVI info frame bug, make it a pass by reference

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAP5 : DSS : HDMI : hack patch for HDMI in OMAP5 hwmod

The class name has to be prefixed with dss unlike OMAP4 in the OMAP5hwmod this
is a hack patch for now.

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAP5 : DSS2 : HDMI : Add CONFIG_OMAP5_DSS_HDMI in dss.h

Use both CONFIG_OMAP4_DSS_HDMI and CONFIG_OMAP5_DSS_HDMI to define
hdmi related functions in dss.h

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Make Wrapper function non-static

HDMI wrapper is same across OMAP4 and OMAP5, so the wrapper
functions can be re-used. Thus making wrapper functions as non-static.

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Add support for OMAP5 HDMI core library in DSS

Add support for configuration of the basic HDMI OMAP5 core IP
driver.HDMI shares the wrapper, PHY and PLL code with OMAP4.

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Remove core_av_offset usage in OMAP5 HDMI core

The struct hdmi_ip_data provides 2 offsets for the HDMI core register
addresses. This made sense for OMAP4 HDMI core which had 2 different
base addresses for sys and av registers respectively, which is not the
case in OMAP5. Add a dss features function which returns the hdmi core's
offset for different OMAPs.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: PLL control bit check.

Although the PLL block is common between OMAP4 and 5
the reset bit is swapped so add cpu check to take care of it

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Add note to not use cpu checks.

This to remember to fix this in the future.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
OMAPDSS: HDMI: Changes in OMAP5 PLL calcula

M2 divider should be used in OMAP5 HDMI PLL calculation.
Also the value must be 2 to get frequencies below 50Mz.

Signed-off-by: Mythri P K <mythripk@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
OMAPDSS: HDMI: Add Bist_control setting in wrapper.

Bist control setting is needed for omap5 configuration

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Add note to remove CPU check

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
OMAP: HDMI: Set Freqout of TX_CONTROL register

Set the correct value for freqout (TX_CONTROL[31:30]) based on the pixel clock.
These bits are used to indicate to the TX the TMDSCLK operating frequency.

Signed-off-by: Fairuz WAN ISMAIL <a0919885@ti.com>
OMAPDSS: HDMI: Don't bail out if HDMI WP pwer state doesn't change

The HDMI_WP_CTRL doesn't seem to reflect the change in power states, but it
functions as expected. Ignore the errors for now.

Signed-off-by: Archit Taneja <archit@ti.com>
OMAPDSS: HDMI: Add a regulator supply for HDMI PHY

Add a regulator struct to enable/disable the supply needed for HDMI_PHY.
This supply comes from an external source connected to the OMAP pin vdds_hdmi.

No longer needed once regulator framework is supported.

Signed-off-by: Archit Taneja <archit@ti.com>
OMAP5: DSS : HDMI : Enable OMAP5 HDMI configuration in DSS

Makefile and KConfig change to add type HDMI OMAP5.

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Add function pointer for HDMI OMAP5 IP

Add the funtion pointer for OMAP5 HDMI IP.
Wrapper/PLL and PHY blocks are shared between 4 and 5.
Core block functions are made to point to OMAP5 function.

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Add EDID read support for OMAP5

Core block in OMAP5 HDMI is different from OMAP4. so add support
to read EDID.

Signed-off-by: Mythri P K <mythripk@ti.com>

Conflicts:

	drivers/video/omap2/dss/ti_hdmi.h
OMAPDSS: HDMI: Add irq_init support in wrapper

wrapper irq init to set all the irq's to 0 is added.

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Add function to enable wrapper irq

Function to add support to enable wrapper irq is added.

Signed-off-by: Mythri P K <mythripk@ti.com>
OMAPDSS: HDMI: Add support for irq handler in HDMI

Support for IRQ handling of the wrapper interrupt that
reaches HDMI is added.

Signed-off-by: Mythri P K <mythripk@ti.com>