0009-mb-dell-e6400-Use-100-MHz-reference-clock-for-displa.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From bea5e0d065382b30593feaecb375c32199fdd9b0 Mon Sep 17 00:00:00 2001
  2. From: Nicholas Chin <nic.c3.14@gmail.com>
  3. Date: Mon, 20 May 2024 10:24:16 -0600
  4. Subject: [PATCH 09/18] mb/dell/e6400: Use 100 MHz reference clock for display
  5. The E6400 uses a 100 MHz reference clock for spread spectrum support on
  6. LVDS, whereas libgfxinit previously assumed a 96 MHz input clock. For
  7. the more common 1280 x 800 display panels, the numerical error was not
  8. large enough to cause noticable issues, but the actual pixel clock
  9. frequency derived from a 100 MHz reference using PLL configs calculated
  10. assuming a 96 MHz reference was not close enough for 1440 x 900 panels,
  11. which require a much higher pixel clock. This resulted in a garbled
  12. display in the pre-OS graphics environment provided by libgfxinit.
  13. Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
  14. ---
  15. src/mainboard/dell/e6400/Kconfig | 3 +++
  16. src/northbridge/intel/gm45/Kconfig | 4 ++++
  17. 2 files changed, 7 insertions(+)
  18. diff --git a/src/mainboard/dell/e6400/Kconfig b/src/mainboard/dell/e6400/Kconfig
  19. index 417d95fd5d..6fe1b1c456 100644
  20. --- a/src/mainboard/dell/e6400/Kconfig
  21. +++ b/src/mainboard/dell/e6400/Kconfig
  22. @@ -19,6 +19,9 @@ config BOARD_SPECIFIC_OPTIONS
  23. select INTEL_GMA_HAVE_VBT
  24. select EC_DELL_MEC5035
  25. +config INTEL_GMA_DPLL_REF_FREQ
  26. + default 100000000
  27. +
  28. config MAINBOARD_DIR
  29. default "dell/e6400"
  30. diff --git a/src/northbridge/intel/gm45/Kconfig b/src/northbridge/intel/gm45/Kconfig
  31. index 8059e7ee80..5df5a93296 100644
  32. --- a/src/northbridge/intel/gm45/Kconfig
  33. +++ b/src/northbridge/intel/gm45/Kconfig
  34. @@ -14,6 +14,10 @@ config NORTHBRIDGE_INTEL_GM45
  35. if NORTHBRIDGE_INTEL_GM45
  36. +config INTEL_GMA_DPLL_REF_FREQ
  37. + int
  38. + default 96000000
  39. +
  40. config VBOOT
  41. select VBOOT_STARTS_IN_BOOTBLOCK
  42. --
  43. 2.39.5