2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-06 12:44:14 +08:00
linux-next/drivers/video/omap2/dss
Tomi Valkeinen 648a55e125 OMAPDSS: fix dss_fck clock rate rounding
DSS func clock is calculated with prate / div * m. However, the current
omapdss code calculates it with prate * m / div, which yields a slightly
different result when there's a remainder. For example, 432000000 / 14 *
2 = 61714284, but 432000000 * 2 / 14 = 61714285.

In addition to that, the clock framework wants the clock rate given with
clk_set_rate to be higher than the actual (truncated) end result. So, if
prate is 432000000, and div is 14, the real result is 30857142.8571...
We need to call clk_set_rate with 30857143, which gives us a clock of
30857142. That's why we need to use DIV_ROUND_UP() when calling
clk_set_rate.

This patch fixes the clock calculation.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2013-04-11 13:07:54 +03:00
..
apply.c OMAPDSS: APPLY: remove dssdev from dss_mgr_wait_for_vsync 2013-04-03 15:19:00 +03:00
core.c OMAPDSS: use omapdss_compat_init() in other drivers 2012-12-07 17:06:00 +02:00
dispc_coefs.c OMAPDSS: DISPC: Fix FIR coefficients 2012-03-06 14:08:23 +02:00
dispc-compat.c OMAPDSS: move irq handling to dispc-compat 2012-12-07 17:05:57 +02:00
dispc-compat.h OMAPDSS: move irq handling to dispc-compat 2012-12-07 17:05:57 +02:00
dispc.c OMAPDSS: remove unused old clock calculation code 2013-04-03 15:19:18 +03:00
dispc.h OMAPDSS: DISPC: Add writeback register offsets and dss features structs 2012-09-26 14:58:50 +03:00
display-sysfs.c OMAPDSS: create display-sysfs.c 2012-11-27 12:47:25 +02:00
display.c OMAPDSS: move display sysfs init to compat layer 2012-12-07 17:05:58 +02:00
dpi.c OMAPDSS: DPI: use new clock calculation code 2013-04-03 15:19:18 +03:00
dsi.c OMAPDSS: remove unused old clock calculation code 2013-04-03 15:19:18 +03:00
dss_features.c omapdss: features: fix supported outputs for OMAP4 2013-03-22 10:14:32 +02:00
dss_features.h OMAPDSS: export dss_feat functions 2012-12-07 17:05:59 +02:00
dss.c OMAPDSS: fix dss_fck clock rate rounding 2013-04-11 13:07:54 +03:00
dss.h OMAPDSS: remove unused old clock calculation code 2013-04-03 15:19:18 +03:00
hdmi_panel.c OMAPDSS: HDMI: Make panel return dssdev register errors 2012-11-06 13:33:35 +02:00
hdmi.c OMAPDSS: add output->dispc_channel 2013-04-03 15:19:01 +03:00
Kconfig Merge branch '3.8/vram-conversion' of git://gitorious.org/linux-omap-dss2/linux 2012-11-16 11:42:46 +02:00
Makefile OMAPDSS: separate compat files in the Makefile 2012-12-07 17:05:58 +02:00
manager-sysfs.c OMAPDSS: MANAGER: Update display sysfs store 2012-09-26 14:58:37 +03:00
manager.c OMAPDSS: move ovl-mgr function setup to apply.c 2012-12-07 17:05:54 +02:00
output.c OMAPDSS: add missing export for omap_dss_get_output() 2013-04-03 15:19:01 +03:00
overlay-sysfs.c OMAPDSS: split overlay sysfs code 2012-09-07 20:02:10 +03:00
overlay.c OMAPDSS: move ovl function setup to apply.c 2012-12-07 17:05:54 +02:00
rfbi.c OMAPDSS: add output->dispc_channel 2013-04-03 15:19:01 +03:00
sdi.c OMAPDSS: SDI: use new clock calculation code 2013-04-03 15:19:18 +03:00
ti_hdmi_4xxx_ip.c OMAPDSS: HDMI: Add op to get audio DMA port address offset 2012-11-06 13:33:36 +02:00
ti_hdmi_4xxx_ip.h OMAPDSS: HDMI: Add an audio configuration function 2012-05-11 15:17:08 +03:00
ti_hdmi.h OMAPDSS: HDMI: Add op to get audio DMA port address offset 2012-11-06 13:33:36 +02:00
venc_panel.c OMAPDSS: remove omap_dss_device's suspend/resume 2012-10-24 08:46:23 +03:00
venc.c OMAPDSS: add output->dispc_channel 2013-04-03 15:19:01 +03:00