Author: uwe
Date: 2007-09-11 17:58:18 +0200 (Tue, 11 Sep 2007)
New Revision: 2770
Modified:
trunk/util/flashrom/chipset_enable.c
Log:
Change out/in combinations to pci_read/write_byte in
sis630 chipset enable.
Signed-off-by: Alex Beregszaszi <alex(a)rtfs.hu>
Acked-by: Uwe Hermann <uwe(a)hermann-uwe.de>
Modified: trunk/util/flashrom/chipset_enable.c
===================================================================
--- trunk/util/flashrom/chipset_enable.c 2007-09-09 20:24:29 UTC (rev 2769)
+++ trunk/util/flashrom/chipset_enable.c 2007-09-11 15:58:18 UTC (rev 2770)
@@ -46,13 +46,11 @@
char b;
/* Enable 0xFFF8000~0xFFFF0000 decoding on SiS 540/630 */
- outl(0x80000840, 0x0cf8);
- b = inb(0x0cfc) | 0x0b;
- outb(b, 0xcfc);
+ b = pci_read_byte(dev, 0x40);
+ pci_write_byte(dev, 0x40, b | 0xb);
/* Flash write enable on SiS 540/630 */
- outl(0x80000845, 0x0cf8);
- b = inb(0x0cfd) | 0x40;
- outb(b, 0xcfd);
+ b = pci_read_byte(dev, 0x45);
+ pci_write_byte(dev, 0x45, b | 0x40);
/* The same thing on SiS 950 SuperIO side */
outb(0x87, 0x2e);