drm: zte: add function to configure vou_ctrl dividers
authorShawn Guo <shawn.guo@linaro.org>
Thu, 12 Jan 2017 14:20:31 +0000 (22:20 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Sat, 28 Jan 2017 03:51:22 +0000 (11:51 +0800)
commit9cc2a68519aeac42775161a4131d91120f3a927e
treee8b439205ffd2a66664678c2c4c190aa4ad8393f
parent831a8d5e0bef97ae89b68dd3a637f0834cb6977b
drm: zte: add function to configure vou_ctrl dividers

The clock control module (CRM) cannot always provide desired frequency
for all VOU output devices.  That's why VOU integrates a few dividers
to further divide the clocks from CRM.  Let's add an interface for
configuring these dividers.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/zte/zx_vou.c
drivers/gpu/drm/zte/zx_vou.h
drivers/gpu/drm/zte/zx_vou_regs.h