0013-mb-dell-Add-S3-SMI-handler-for-Dell-Latitudes.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. From 501eef87f6b699cb639ba3fc5a09113f20671401 Mon Sep 17 00:00:00 2001
  2. From: Nicholas Chin <nic.c3.14@gmail.com>
  3. Date: Fri, 3 May 2024 16:31:12 -0600
  4. Subject: [PATCH 13/18] mb/dell: Add S3 SMI handler for Dell Latitudes
  5. Integrate the previously added mec5035_smi_sleep() function into
  6. mainboard code to fix S3 suspend on the SNB/IVB Latitudes and the E7240.
  7. The E6400 does not require the EC command to sucessfully suspend and
  8. resume from S3, though sending it does enable the breathing effect on
  9. the power LED while in S3. Without it, all LEDs turn off during S3.
  10. Change-Id: Ic0d887f75be13c3fb9f6df62153ac458895e0283
  11. Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
  12. ---
  13. src/mainboard/dell/e7240/smihandler.c | 9 +++++++++
  14. src/mainboard/dell/gm45_latitude/smihandler.c | 9 +++++++++
  15. src/mainboard/dell/snb_ivb_latitude/smihandler.c | 9 +++++++++
  16. 3 files changed, 27 insertions(+)
  17. create mode 100644 src/mainboard/dell/e7240/smihandler.c
  18. create mode 100644 src/mainboard/dell/gm45_latitude/smihandler.c
  19. create mode 100644 src/mainboard/dell/snb_ivb_latitude/smihandler.c
  20. diff --git a/src/mainboard/dell/e7240/smihandler.c b/src/mainboard/dell/e7240/smihandler.c
  21. new file mode 100644
  22. index 0000000000..00e55b51db
  23. --- /dev/null
  24. +++ b/src/mainboard/dell/e7240/smihandler.c
  25. @@ -0,0 +1,9 @@
  26. +/* SPDX-License-Identifier: GPL-2.0-only */
  27. +
  28. +#include <cpu/x86/smm.h>
  29. +#include <ec/dell/mec5035/mec5035.h>
  30. +
  31. +void mainboard_smi_sleep(u8 slp_typ)
  32. +{
  33. + mec5035_smi_sleep(slp_typ);
  34. +}
  35. diff --git a/src/mainboard/dell/gm45_latitude/smihandler.c b/src/mainboard/dell/gm45_latitude/smihandler.c
  36. new file mode 100644
  37. index 0000000000..00e55b51db
  38. --- /dev/null
  39. +++ b/src/mainboard/dell/gm45_latitude/smihandler.c
  40. @@ -0,0 +1,9 @@
  41. +/* SPDX-License-Identifier: GPL-2.0-only */
  42. +
  43. +#include <cpu/x86/smm.h>
  44. +#include <ec/dell/mec5035/mec5035.h>
  45. +
  46. +void mainboard_smi_sleep(u8 slp_typ)
  47. +{
  48. + mec5035_smi_sleep(slp_typ);
  49. +}
  50. diff --git a/src/mainboard/dell/snb_ivb_latitude/smihandler.c b/src/mainboard/dell/snb_ivb_latitude/smihandler.c
  51. new file mode 100644
  52. index 0000000000..00e55b51db
  53. --- /dev/null
  54. +++ b/src/mainboard/dell/snb_ivb_latitude/smihandler.c
  55. @@ -0,0 +1,9 @@
  56. +/* SPDX-License-Identifier: GPL-2.0-only */
  57. +
  58. +#include <cpu/x86/smm.h>
  59. +#include <ec/dell/mec5035/mec5035.h>
  60. +
  61. +void mainboard_smi_sleep(u8 slp_typ)
  62. +{
  63. + mec5035_smi_sleep(slp_typ);
  64. +}
  65. --
  66. 2.39.5