diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-08-22 06:16:24 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-09-30 09:16:41 -0400 |
commit | b44e45825dbe30f32c770b98c38555b6bd331760 (patch) | |
tree | d465a3954443a86e6c0ee1e688b93b78b9c8cbaf /include/video | |
parent | 8d88767a4377171752c22ac39bcb2b505eb751da (diff) |
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>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/omapdss.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 44f423ff64bd..c7cfdad81242 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -520,6 +520,7 @@ struct omap_dss_device { | |||
520 | } dsi; | 520 | } dsi; |
521 | 521 | ||
522 | struct { | 522 | struct { |
523 | /* regn is one greater than TRM's REGN value */ | ||
523 | u16 regn; | 524 | u16 regn; |
524 | u16 regm2; | 525 | u16 regm2; |
525 | } hdmi; | 526 | } hdmi; |