]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: fix i886 work-around
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 13 Jun 2017 09:02:10 +0000 (12:02 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 23 Aug 2017 09:22:09 +0000 (12:22 +0300)
commitbd5437f301c0de15015b751dafa65f33183937aa
tree882a3af2f67b84292cfdff5db2961ab69219b865
parentc89bf634f8c3756cae971bf6053d2a24ce6e1eda
drm/omap: fix i886 work-around

d5412e25c030a6ff8cd46163145f75bc755ad779 ("drm/omap: work-around for
errata i886") changed how the PLL dividers and multipliers are
calculated. While the new way should work fine for all the PLLs, it
breaks omap5 PLLs. The issues seen are rather odd: seemed that the
output clock rate is half of what we asked. It is unclear what's causing
there issues.

As a work-around this patch adds a "errata_i886" flag, which is set only
for DRA7's PLLs, and the PLL setup is done according to that flag.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
drivers/gpu/drm/omapdrm/dss/dss.h
drivers/gpu/drm/omapdrm/dss/pll.c
drivers/gpu/drm/omapdrm/dss/video-pll.c