X60: remove pci config register save/restore
authorSven Schnelle <svens@stackframe.org>
Tue, 28 Jun 2011 06:05:26 +0000 (08:05 +0200)
committerSven Schnelle <svens@stackframe.org>
Tue, 28 Jun 2011 09:22:51 +0000 (11:22 +0200)
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)
src/mainboard/lenovo/x60/mainboard_smi.c

index fd10c9a9a40a137f86b5db1714e1c73ce761668a..a0df76a3982a4c014cfbbb6724885db3a14779f9 100644 (file)
@@ -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)