summaryrefslogtreecommitdiffstats
path: root/flash_enable.c
diff options
context:
space:
mode:
authorOllie Lho <ollie@sis.com.tw>2004-12-07 17:19:04 +0000
committerOllie Lho <ollie@sis.com.tw>2004-12-07 17:19:04 +0000
commitd11f36180814c45b82142b168c95c6515278a926 (patch)
tree4ba8e20b6ff46368133403fe87aa91565d9499da /flash_enable.c
parent98bea8aba5a1dad1abc2b1d191f873e1d45d5b50 (diff)
downloadast2050-flashrom-d11f36180814c45b82142b168c95c6515278a926.zip
ast2050-flashrom-d11f36180814c45b82142b168c95c6515278a926.tar.gz
Enable LPC decoding for 1 MB more addresss, for supporting SST49LF00xA/B
Corresponding to flashrom svn r28 and coreboot v2 svn r1813.
Diffstat (limited to 'flash_enable.c')
-rw-r--r--flash_enable.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/flash_enable.c b/flash_enable.c
index 7bb20c4..6a78434 100644
--- a/flash_enable.c
+++ b/flash_enable.c
@@ -224,10 +224,9 @@ static int enable_flash_amd8111(struct pci_dev *dev, char *name)
* that it is hard to argue that we should quit at this point.
*/
- //dump_pci_device(dev);
-
+ /* enable decoding at 0xffb00000 to 0xffffffff */
old = pci_read_byte(dev, 0x43);
- new = old | 0x80;
+ new = old | 0xC0;
if (new != old) {
pci_write_byte(dev, 0x43, new);
if (pci_read_byte(dev, 0x43) != new) {
OpenPOWER on IntegriCloud