]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05d38efe5309c07f5eb42695941cbb56c5a6aa46
tree74607f258876165b8d90e77c0ac1ddcdcc2ec769
parent6975a41133435ffa52bbbbb4bed275129e0b2dec
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