drm/rockchip: dw-mipi-dsi: fix escape clock rate
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:56 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:54 +0000 (14:48 -0500)
commit1bef24bae2ed4d9eabc5cde33e293b2fe95796ef
tree97bb28ee04a77d15bd4a59cfa4d01fbe98100444
parent96ad6f0b8d7ec1d35dc3df87947e840b6a738380
drm/rockchip: dw-mipi-dsi: fix escape clock rate

This clock rate is derived from the PHY PLL, so it should be calculated
dynamically.  This calculation is the same as that used by the vendor
kernel and ensures that the escape clock runs at <20MHz as required by
the MIPI specification.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-14-john@metanate.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c