Patchwork X60: enable SMI handler

login
register
about
Submitter Sven Schnelle
Date 2011-02-15 18:47:35
Message ID <864o85nni0.fsf@stackframe.org>
Download mbox | patch
Permalink /patch/2643/
State Accepted
Headers show

Comments

Sven Schnelle - 2011-02-15 18:47:35
Hi List,

this patch enables SMI Support for the Thinkpad X60.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Peter Stuge - 2011-02-16 13:13:14
Sven Schnelle wrote:
> Hi List,
> 
> this patch enables SMI Support for the Thinkpad X60.
> 
> Signed-off-by: Sven Schnelle <svens@stackframe.org>

Acked-by: Peter Stuge <peter@stuge.se>

r6366

Patch

Index: src/mainboard/lenovo/x60/Kconfig
===================================================================
--- src/mainboard/lenovo/x60/Kconfig	(revision 6365)
+++ src/mainboard/lenovo/x60/Kconfig	(working copy)
@@ -20,6 +20,7 @@ 
 	select GFXUMA
 	select BOARD_ROMSIZE_KB_2048
 	select CHANNEL_XOR_RANDOMIZATION
+	select HAVE_SMI_HANDLER
 
 config MAINBOARD_DIR
 	string
Index: src/mainboard/lenovo/x60/romstage.c
===================================================================
--- src/mainboard/lenovo/x60/romstage.c	(revision 6365)
+++ src/mainboard/lenovo/x60/romstage.c	(working copy)
@@ -224,6 +224,14 @@ 
 	/* Disable unused devices */
 	RCBA32(0x3418) = FD_PCIE6 | FD_PCIE5 | FD_INTLAN | FD_ACMOD | FD_ACAUD;
 	RCBA32(0x3418) |= (1 << 0); // Required.
+
+        /* Set up I/O Trap #0 for 0xfe00 (SMIC) */
+        RCBA32(0x1e84) = 0x00020001;
+        RCBA32(0x1e80) = 0x0000fe01;
+
+        /* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
+        RCBA32(0x1e9c) = 0x000200f0;
+        RCBA32(0x1e98) = 0x000c0801;
 }
 
 static void early_ich7_init(void)