]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OMAPDSS: DISPC: Don't pass channel out when configuring overlays
authorArchit Taneja <archit@ti.com>
Wed, 26 Sep 2012 11:28:52 +0000 (16:58 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 26 Sep 2012 11:58:49 +0000 (14:58 +0300)
commit3e8a6ff2489510f529364f3c3f8b8881d599fd5c
tree0a8a10b52fe739dbb9e3295c16b41766879c54aa
parent84a880fd51cb528ae7499d0e971a3d4f4587401a
OMAPDSS: DISPC: Don't pass channel out when configuring overlays

dispc_ovl_setup_common() is to be used by both overlays and writeback. We pass
channel out to figure out what manager the overlay is connected to, to determine
the pixel clock rate. This is used to decide the scaling limitations for that
overlay.

writeback doesn't have a channel out, it has a channel in field which tells
where writeback gets its input from. These are 2 different fields, and this
prevents us reusing the overlay configuration code for writeback.

To overcome this, we now pass omap_plane to overlay related functions rather
than passing channel out. We create helper functions which can derive pclk/lclk
from the omap_plane id.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/dispc.c