brcm2708: update linux 4.4 patches to latest version
[openwrt/staging/dedeckeh.git] / target / linux / brcm2708 / patches-4.4 / 0582-clk-bcm-Allow-rate-change-propagation-to-PLLH_AUX-on.patch
1 From 5c301af484ece3e61146572167bbe9418d536616 Mon Sep 17 00:00:00 2001
2 From: Boris Brezillon <boris.brezillon@free-electrons.com>
3 Date: Thu, 1 Dec 2016 22:00:20 +0100
4 Subject: [PATCH] clk: bcm: Allow rate change propagation to PLLH_AUX on VEC
5 clock
6
7 The VEC clock requires needs to be set at exactly 108MHz. Allow rate
8 change propagation on PLLH_AUX to match this requirement wihtout
9 impacting other IPs (PLLH is currently only used by the HDMI encoder,
10 which cannot be enabled when the VEC encoder is enabled).
11
12 Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
13 Reviewed-by: Eric Anholt <eric@anholt.net>
14 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
15 (cherry picked from commit d86d46af84855403c00018be1c3e7bc190f2a6cd)
16 ---
17 drivers/clk/bcm/clk-bcm2835.c | 7 ++++++-
18 1 file changed, 6 insertions(+), 1 deletion(-)
19
20 diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c
21 index 5f0e2f3..d023e4a 100644
22 --- a/drivers/clk/bcm/clk-bcm2835.c
23 +++ b/drivers/clk/bcm/clk-bcm2835.c
24 @@ -1920,7 +1920,12 @@ static const struct bcm2835_clk_desc clk_desc_array[] = {
25 .ctl_reg = CM_VECCTL,
26 .div_reg = CM_VECDIV,
27 .int_bits = 4,
28 - .frac_bits = 0),
29 + .frac_bits = 0,
30 + /*
31 + * Allow rate change propagation only on PLLH_AUX which is
32 + * assigned index 7 in the parent array.
33 + */
34 + .set_rate_parent = BIT(7)),
35
36 /* dsi clocks */
37 [BCM2835_CLOCK_DSI0E] = REGISTER_PER_CLK(
38 --
39 2.1.4
40