]> git.karo-electronics.de Git - mv-sheeva.git/commit
OMAP: DSS2: HDMI: change regn definition
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 22 Aug 2011 10:16:24 +0000 (13:16 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Sep 2011 13:16:41 +0000 (16:16 +0300)
commitb44e45825dbe30f32c770b98c38555b6bd331760
treed465a3954443a86e6c0ee1e688b93b78b9c8cbaf
parent8d88767a4377171752c22ac39bcb2b505eb751da
OMAP: DSS2: HDMI: change regn definition

regn divider is currently programmed to the registers without change,
but when calculating clock frequencies it is used as regn+1.

To make this similar to how DSI handles the dividers this patch changes
the regn value to be used as such for calculations, but the value
programmed to registers is regn-1.

This simplifies the clock frequency calculations, makes it similar to
DSI, and also allows us to use regn value 0 as undefined.

Cc: Mythri P K <mythripk@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
include/video/omapdss.h