FROMLIST: clk: rockchip: make rk3399 vop dclks keep their rate on parent rate changes
authorHeiko Stuebner <heiko@sntech.de>
Mon, 2 May 2016 16:36:22 +0000 (18:36 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 10 May 2016 11:12:08 +0000 (19:12 +0800)
commitbdba697e30d1fae3fdba20c41c2da0ea48fc281c
treeefa00886f1e80681c608fdee924768f01d23d1e6
parentb7a2aa66b2c81ed78a4ba94cadeb0e7e9a3126c7
FROMLIST: clk: rockchip: make rk3399 vop dclks keep their rate on parent rate changes

The rk3399 hdmi phy is supplied by the vpll directly and needs to adapt
that frequency depending on the selected resolution on the hdmi output.
For the hdmi-phy the vpll frequency is supplied unchanged without
any dividers being present there.

The vpll also is one of the sources the general display clock of the
visual output processor (vop) and as it is somewhat special for
display operations possibly also the preferred pll source. Here a divider
is available between the pll-mux and the vop clock, so that this part
can adapt the resulting frequency if needed.

So to keep the vop clock in line with the target rate, set the newly
introduced CLK_KEEP_REQ_RATE flag for the dclk_vop clocks on rk3399.

(am from https://patchwork.kernel.org/patch/8993771/)

Change-Id: Iba9a179b764472f22d7531eb0c662dcd982433d4
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
drivers/clk/rockchip/clk-rk3399.c