drm/fsl-dcu: use common clock framework for pixel clock divider
authorStefan Agner <stefan@agner.ch>
Wed, 23 Mar 2016 01:06:08 +0000 (18:06 -0700)
committerStefan Agner <stefan@agner.ch>
Tue, 26 Apr 2016 03:27:18 +0000 (20:27 -0700)
commit2d701449bce1b7ddb0a7d85de7479c7422ee0e42
tree74607f258876165b8d90e77c0ac1ddcdcc2ec769
parentf93500f430733178dfd8f9c80e52b13d0f273dd3
drm/fsl-dcu: use common clock framework for pixel clock divider

Use the common clock framework to calculate the pixel clock
dividier. The previous implementation rounded down the calculated
factor. Thanks to the CLK_DIVIDER_ROUND_CLOSEST flag using the
common clock framework divider implementation improves the pixel
clock accuracy in some cases. Ontop of that it also allows to see
the actual pixel clock in the sysfs clock summary.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c