0582-clk-bcm-Allow-rate-change-propagation-to-PLLH_AUX-on.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. The VEC clock requires needs to be set at exactly 108MHz. Allow rate
  7. change propagation on PLLH_AUX to match this requirement wihtout
  8. impacting other IPs (PLLH is currently only used by the HDMI encoder,
  9. which cannot be enabled when the VEC encoder is enabled).
  10. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
  11. Reviewed-by: Eric Anholt <eric@anholt.net>
  12. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  13. (cherry picked from commit d86d46af84855403c00018be1c3e7bc190f2a6cd)
  14. ---
  15. drivers/clk/bcm/clk-bcm2835.c | 7 ++++++-
  16. 1 file changed, 6 insertions(+), 1 deletion(-)
  17. --- a/drivers/clk/bcm/clk-bcm2835.c
  18. +++ b/drivers/clk/bcm/clk-bcm2835.c
  19. @@ -1926,7 +1926,12 @@ static const struct bcm2835_clk_desc clk
  20. .ctl_reg = CM_VECCTL,
  21. .div_reg = CM_VECDIV,
  22. .int_bits = 4,
  23. - .frac_bits = 0),
  24. + .frac_bits = 0,
  25. + /*
  26. + * Allow rate change propagation only on PLLH_AUX which is
  27. + * assigned index 7 in the parent array.
  28. + */
  29. + .set_rate_parent = BIT(7)),
  30. /* dsi clocks */
  31. [BCM2835_CLOCK_DSI0E] = REGISTER_PER_CLK(