linux_dsm_epyc7002/drivers/video/omap2
Tomi Valkeinen ddb1d5ca99 OMAPDSS: HDMI: clean up PHY power handling
The TRM tells to set PHY to TXON only after getting LINK_CONNECT, and to
set PHY to OFF or LDOON after getting LINK_DISCONNECT, in order to avoid
damage to the PHY.

We don't currently do it quite like that. Instead of using the HDMI
interrupts, we use HPD signal. This works, but is not actually quite
correct, as HPD comes at a different time than LINK_CONNECT and
LINK_DISCONNECT interrupts. Also, the HPD GPIO is a property of the TPD
level shifter, not HDMI IP, so handling the GPIO in the HDMI driver is
wrong.

This patch implements the PHY power handling correctly, using the
interrupts.

There is a corner case that causes some additional difficulties: we may
get both LINK_CONNECT and LINK_DISCONNECT interrupts at the same time.
This is handled in the code by retrying: turning off the PHY, clearing
the interrupt status, and re-enabling the PHY. This causes a new
LINK_CONNECT interrupt to happen if a cable is connected.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2013-06-17 14:00:54 +03:00
..
displays OMAPDSS: Add panel dev pointer to dssdev 2013-06-17 14:00:50 +03:00
dss OMAPDSS: HDMI: clean up PHY power handling 2013-06-17 14:00:54 +03:00
omapfb OMAPFB: use EPROBE_DEFER if default display is not present 2013-06-17 14:00:54 +03:00
Kconfig ARM: OMAP: Fix drivers to depend on omap for internal devices 2012-12-16 15:23:37 -08:00
Makefile OMAPDSS: Makefile: move omapfb after panels 2013-05-02 11:24:18 +03:00
vrfb.c drivers/video/omap2: don't check resource with devm_ioremap_resource 2013-05-18 11:58:01 +02:00