summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-06-28 08:05:26 +0200
committerSven Schnelle <svens@stackframe.org>2011-06-28 11:22:51 +0200
commitedcf9f4fe6ca55b642400d1af097613038a56fdf (patch)
treecfcb6aa26e9bf22d5007f5687c77a4521bc634b9
parent1866e9ca78d410566840398f9cb8d0309693ba0b (diff)
X60: remove pci config register save/restore
SMM code already makes sure this register is saved and restored, so we don't have to do it. Change-Id: I078e1227de4436fba9c5fb3879a564c981cb0f9a Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/65 Tested-by: build bot (Jenkins)
-rw-r--r--src/mainboard/lenovo/x60/mainboard_smi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mainboard/lenovo/x60/mainboard_smi.c b/src/mainboard/lenovo/x60/mainboard_smi.c
index fd10c9a9a4..a0df76a398 100644
--- a/src/mainboard/lenovo/x60/mainboard_smi.c
+++ b/src/mainboard/lenovo/x60/mainboard_smi.c
@@ -46,11 +46,10 @@ static void mainboard_smm_init(void)
static void mainboard_smi_save_cmos(void)
{
u8 val;
- u8 tmp70, tmp72, tmpcf8;
+ u8 tmp70, tmp72;
tmp70 = inb(0x70);
tmp72 = inb(0x72);
- tmpcf8 = inl(0xcf8);
val = pci_read_config8(PCI_DEV(0, 2, 1), 0xf4);
set_option("tft_brightness", &val);
@@ -59,7 +58,6 @@ static void mainboard_smi_save_cmos(void)
outb(tmp70, 0x70);
outb(tmp72, 0x72);
- outb(tmpcf8, 0xcf8);
}
int mainboard_io_trap_handler(int smif)