diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-09-11 15:58:18 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-09-11 15:58:18 +0000 |
commit | 1b72b8912a00b3d0b62eca7436119eda75bd8785 (patch) | |
tree | 1595f2ff0bb106687f2db8e8913fcd17b2f65729 /chipset_enable.c | |
parent | 4bd059fe2876409c20996d7f1e8e4cff87452bdd (diff) | |
download | flashrom-1b72b8912a00b3d0b62eca7436119eda75bd8785.zip flashrom-1b72b8912a00b3d0b62eca7436119eda75bd8785.tar.gz |
Change out/in combinations to pci_read/write_byte in sis630 chipset enable
Corresponding to flashrom svn r138 and coreboot v2 svn r2770.
Signed-off-by: Alex Beregszaszi <alex@rtfs.hu>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index 9886843..8a4fd56 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -46,13 +46,11 @@ static int enable_flash_sis630(struct pci_dev *dev, char *name) 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); |