0011-northbridge-gm45-raminit.c-enable-GS45-high-performa.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From 3b67763d6029ce954cea0dbc02ff6814b7c02478 Mon Sep 17 00:00:00 2001
  2. From: Steve Shenton <sgsit@libreboot.org>
  3. Date: Fri, 12 Dec 2014 12:42:01 +0000
  4. Subject: [PATCH 11/17] northbridge/gm45/raminit.c: enable GS45
  5. high-performance mode
  6. The datasheets for GS45 describe a high- and low-performance mode
  7. for different CPUs. Coreboot currently disables GS45 altogether,
  8. but forcing coreboot to treat high-performance GS45 as GM45 makes
  9. the X200S and X200 Tablet boot if it has the right CPU type.
  10. Hardcode-enable GS45 high-performance mode in coreboot, passing it
  11. off as GM45. This is known to work with all CPUs except the SU
  12. (low performance) models.
  13. Change-Id: I57032bb6e1ebdaf4e2aa09548e73d253afb9b078
  14. Signed-off-by: Steve Shenton <sgsit@libreboot.org>
  15. Signed-off-by: Francis Rowe <info@gluglug.org.uk>
  16. ---
  17. src/northbridge/intel/gm45/raminit.c | 6 +++---
  18. 1 file changed, 3 insertions(+), 3 deletions(-)
  19. diff --git a/src/northbridge/intel/gm45/raminit.c b/src/northbridge/intel/gm45/raminit.c
  20. index 9c4fecd..9f5aa06 100644
  21. --- a/src/northbridge/intel/gm45/raminit.c
  22. +++ b/src/northbridge/intel/gm45/raminit.c
  23. @@ -108,8 +108,8 @@ void get_gmch_info(sysinfo_t *sysinfo)
  24. printk(BIOS_SPEW, "GMCH: GS40\n");
  25. break;
  26. case GMCH_GS45:
  27. - printk(BIOS_SPEW, "GMCH: GS45, using low power mode by default\n");
  28. - sysinfo->gs45_low_power_mode = 1;
  29. + printk(BIOS_SPEW, "GMCH: GS45, using high performance mode by default\n");
  30. + sysinfo->gs45_low_power_mode = 0;
  31. break;
  32. case GMCH_PM45:
  33. printk(BIOS_SPEW, "GMCH: PM45\n");
  34. @@ -1692,7 +1692,7 @@ void raminit(sysinfo_t *const sysinfo, const int s3resume)
  35. {
  36. const dimminfo_t *const dimms = sysinfo->dimms;
  37. const timings_t *const timings = &sysinfo->selected_timings;
  38. - const int sff = sysinfo->gfx_type == GMCH_GS45;
  39. + const int sff = (sysinfo->gfx_type == GMCH_GS45) && (sysinfo->gs45_low_power_mode == 1);
  40. int ch;
  41. u8 reg8;
  42. --
  43. 1.9.1