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 | 7798c888e80772a0a46172da581d039fcb7cd844 (patch) | |
tree | 4f314821bd1e22d54a8032b209f9d861f465747e /util | |
parent | f9b0f7fd910ff7ac48b53262328e63c110910549 (diff) |
Change out/in combinations to pci_read/write_byte in
sis630 chipset enable.
Signed-off-by: Alex Beregszaszi <alex@rtfs.hu>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2770 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r-- | util/flashrom/chipset_enable.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/util/flashrom/chipset_enable.c b/util/flashrom/chipset_enable.c index 988684328e..8a4fd56f51 100644 --- a/util/flashrom/chipset_enable.c +++ b/util/flashrom/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); |