[coreboot-gerrit] New patch to review for coreboot: dc6a654 H8: Move EC GPE declaration to mainboard

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Tue Nov 26 10:16:07 CET 2013


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4281

-gerrit

commit dc6a65486a042505e3125abc681845c4211f780d
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Tue Nov 26 10:13:28 2013 +0100

    H8: Move EC GPE declaration to mainboard
    
    Change-Id: Iefc481f09268dd15bbc3cbfa8bdd110d44383f6a
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 src/ec/lenovo/h8/acpi/ec.asl     | 8 +-------
 src/mainboard/lenovo/t60/Kconfig | 4 ++++
 src/mainboard/lenovo/x60/Kconfig | 4 ++++
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl
index f2a8061..e3c6796 100644
--- a/src/ec/lenovo/h8/acpi/ec.asl
+++ b/src/ec/lenovo/h8/acpi/ec.asl
@@ -20,19 +20,13 @@
  * MA 02110-1301 USA
  */
 
-#include <kconfig.h>
 #include "smi.h"
-#if IS_ENABLED (CONFIG_BOARD_LENOVO_X201)
-#define THINKPAD_EC_GPE 17
-#else
-#define THINKPAD_EC_GPE 28
-#endif
 Device(EC)
 {
 	Name (_HID, EISAID("PNP0C09"))
 	Name (_UID, 0)
 
-	Name (_GPE, THINKPAD_EC_GPE)
+	Name (_GPE, CONFIG_THINKPAD_EC_GPE)
 	Mutex (ECLK, 0)
 
 	OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100)
diff --git a/src/mainboard/lenovo/t60/Kconfig b/src/mainboard/lenovo/t60/Kconfig
index 0f0670e..b8f9385 100644
--- a/src/mainboard/lenovo/t60/Kconfig
+++ b/src/mainboard/lenovo/t60/Kconfig
@@ -58,4 +58,8 @@ config SEABIOS_PS2_TIMEOUT
 	int
 	default 3000
 
+config THINKPAD_EC_GPE
+	int
+	default 28
+
 endif
diff --git a/src/mainboard/lenovo/x60/Kconfig b/src/mainboard/lenovo/x60/Kconfig
index 72aeef8..0734bb8 100644
--- a/src/mainboard/lenovo/x60/Kconfig
+++ b/src/mainboard/lenovo/x60/Kconfig
@@ -62,4 +62,8 @@ config SEABIOS_PS2_TIMEOUT
 	int
 	default 3000
 
+config THINKPAD_EC_GPE
+	int
+	default 28
+
 endif



More information about the coreboot-gerrit mailing list