OSDN Git Service

OMAPDSS: HDMI: move irq & phy pwr handling
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 28 Oct 2013 09:47:34 +0000 (11:47 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 May 2014 12:11:28 +0000 (15:11 +0300)
commitdcf5f7299e94d113aa49b4e099c4b9f289d17ed2
treed1e223c90de42595a98f138ef8a2819449d1a463
parent543e761fb9c128d9065f45697cd96d04a566d2ce
OMAPDSS: HDMI: move irq & phy pwr handling

HDMI IRQ handling was moved into hdmi_phy.c when restructuring the HDMI
driver. While this worked fine, it's not correct.

The HDMI IRQ handling should be either in the hdmi_wp, or in the main
hdmi driver. This patch moves the handling to the main hdmi driver, as I
feel it's a more appropriate choice.

This move also requires changing the handling of the PHY power, as that
was partly handled in the IRQ handler. The PHY power is handled via the
WP module. An option would be to give HDMI PHY driver function pointers
that it could use to manage the PHY power, but as the PHY power is not
needed to access the PHY registers, the handling was also moved to the
main HDMI driver. This could be changed later if need be.

Note that there's slightly similar power issue with the PLL: the HDMI
PLLs power is also handled via the WP module. For now, the PLL power
handling is still done inside the PLL driver.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/hdmi.h
drivers/video/fbdev/omap2/dss/hdmi4.c
drivers/video/fbdev/omap2/dss/hdmi_phy.c