0001-g45-hw-gfx-gma-plls.adb-Make-reference-clock-frequen.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From ba078864500de99c26b6ea7e3fdcef19bca582a7 Mon Sep 17 00:00:00 2001
  2. From: Nicholas Chin <nic.c3.14@gmail.com>
  3. Date: Mon, 20 May 2024 10:10:03 -0600
  4. Subject: [PATCH 1/1] g45/hw-gfx-gma-plls.adb: Make reference clock frequency
  5. configurable
  6. Instead of assuming a 96 MHz reference clock frequency, use the value
  7. specified by the new INTEL_GMA_DPLL_REF_FREQ Kconfig. This defaults to
  8. 96 MHz to preserve the existing behavior. An example of where this is
  9. needed is the DPLL_REF_SSCLK input, which will typically be 100 MHz
  10. to support LVDS spread spectrum clocking.
  11. Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
  12. ---
  13. common/g45/hw-gfx-gma-plls.adb | 4 +++-
  14. 1 file changed, 3 insertions(+), 1 deletion(-)
  15. diff --git a/common/g45/hw-gfx-gma-plls.adb b/common/g45/hw-gfx-gma-plls.adb
  16. index 67242f2..5e970d7 100644
  17. --- a/common/g45/hw-gfx-gma-plls.adb
  18. +++ b/common/g45/hw-gfx-gma-plls.adb
  19. @@ -12,6 +12,8 @@
  20. -- GNU General Public License for more details.
  21. --
  22. +with CB.Config;
  23. +
  24. with HW.Time;
  25. with HW.GFX.GMA.Config;
  26. with HW.GFX.GMA.Registers;
  27. @@ -460,7 +462,7 @@ is
  28. (Display => Port_Cfg.Display,
  29. Target_Dotclock => Target_Clock,
  30. -- should be, but doesn't has to be always the same:
  31. - Reference_Clock => 96_000_000,
  32. + Reference_Clock => CB.Config.INTEL_GMA_DPLL_REF_FREQ,
  33. Best_Clock => Clk,
  34. Valid => Success);
  35. else
  36. --
  37. 2.39.2