OMAP2+: add omapdss_init_of()

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
OMAP2+: mux HDMI pins with DT kernel

Add HDMI pin muxing for DT kernel. This sets the pull up on HDMI's i2c
lines depending on the board.

This should really be handled with DT data, but for that we need
separate dts files for the board revisions.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
OMAPDSS: Add DT support to dss & dispc

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
OMAPDSS: Add DT support to DPI

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
OMAPDSS: Add DT support to DSI

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
OMAPDSS: Add DT support to HDMI

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
OMAPDSS: Taal: Add DT support

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
OMAPDSS: TFP410: Add DT support

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
OMAPDSS: fix dss_get_ctx_loss_count for DT

When using DT, dss device does not have platform data. Thus
dss_get_ctx_loss_count() needs to be changed to get the platform data
from the omapdss device.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
OMAPDSS: Add LG4591 panel driver

Add driver for LG4591 panel, which is a 720 x 1280 DSI video mode panel.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
ARM: dts: OMAP5: Add dss information for OMAP5

Update OMAP5 with DSS DT section.

Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
ARM: dts: omap5-evm: Add LG panel to omap5-evm.dts

Add LG4591 panel to OMAP5 evm board.

Conflicts:
	arch/arm/boot/dts/omap5-evm.dts

Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
ARM: OMAP: Display: Add missing DT code for init on OMAP5

Add missing DT code inside omapdss_init_of function for OMAP5
DT boot. It need to be check for OMAP4 also due to 3.8 update
and dss-comon file creation.

Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
OMAPDSS: HDMI: Init HDMI operations in _hw_probe

Initialize the HDMI operations from omapdss_hdmihw_probe as there is no need
to wait until hdmi_init_display.

TODO: Need to handle errors in hdmi_probe_pdata.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>

Conflicts:
	drivers/video/omap2/dss/hdmi.c

Conflicts:
	drivers/video/omap2/dss/hdmi.c
OMAPDSS: HDMI: split power_on/off to two parts

There's currently just one power-on function for HDMI, which enables the
IP and the video output. When reading EDID or detecting if a monitor is
connected, we don't need the video output.

Enabling the video output for these operations is not a big problem in
itself, but the quick enable/disable cycles caused by the operations
seem to cause sync lost errors from time to time. Also, this makes it
possible to read the EDID before the full video path has been set up.

This patch splits the hdmi_power_on into two parts, hdmi_power_on_core
and hdmi_power_on_full. The "full" version does what hdmi_power_on does
currently, and hdmi_power_on_core only enables the core IP. Similar
changes are made for power_off.

Note that these don't allow the HDMI IP to be first enabled, and later
enable the video output, but the HDMI IP will first need to be powered
off before calling the full version. So this is rather limited
implementation, but it fills the needs for reading EDID.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Ricardo Neri <ricardo.neri@ti.com>

Conflicts:
	drivers/video/omap2/dss/hdmi.c
OMAPDSS: HDMI: OMAP4: Complete register definitions for wrapper

Add definitions for missing registers in the HDMI wrapper. Also, order
the registers by offset to improve readability.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
OMAPDSS: HDMI: OMAP4: Complete dumping of wrapper registers

Add missing registers when dumping the HDMI wrapper. Also, order the dump by
offset to improve readability.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
OMAPDSS: HDMI: OMAP4: Complete register definitions for DPLL

Add missing register definitions for spread spectrum clocking.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
OMAPDSS: HDMI: OMAP4: Complete dumping of DPLL registers

Add the spread spectrum clock configuration registers to the DPLL dump.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
OMAPDSS: HDMI: OMAP4: Rename the HDMI_CORE_CTRL1 register

Rename the register to be aligned with the HDMI_CORE_SYS naming convention.
Also, update the naming of the #defines used for its fields.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>