diff options
author | Adam Jurkowski <adam.jurkowski@kontron.pl> | 2009-12-21 15:30:46 +0000 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2009-12-21 15:30:46 +0000 |
commit | e4984102e9466116896c6e17a31e679d3d533bf5 (patch) | |
tree | e8537907f1749b22edd50684ec246b726690e701 | |
parent | b843e2019a957491fcc4d667f9fbd2bb166a6575 (diff) | |
download | ast2050-flashrom-e4984102e9466116896c6e17a31e679d3d533bf5.zip ast2050-flashrom-e4984102e9466116896c6e17a31e679d3d533bf5.tar.gz |
Chipset: Add support for Intel Poulsbo chipset
Corresponding to flashrom svn r809.
Signed-off-by: Adam Jurkowski <adam.jurkowski@kontron.pl>
Acked-by: Luc Verhaegen <libv@skynet.be>
-rw-r--r-- | chipset_enable.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index 3994023..f618a37 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -5,6 +5,7 @@ * Copyright (C) 2005-2009 coresystems GmbH * Copyright (C) 2006 Uwe Hermann <uwe@hermann-uwe.de> * Copyright (C) 2007,2008,2009 Carl-Daniel Hailfinger + * Copyright (C) 2009 Kontron Modular Computers GmbH * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -391,6 +392,26 @@ static int enable_flash_ich_dc(struct pci_dev *dev, const char *name) return enable_flash_ich(dev, name, 0xdc); } +static int enable_flash_poulsbo(struct pci_dev *dev, const char *name) +{ + uint16_t old, new; + int err; + + if ((err = enable_flash_ich(dev, name, 0xd8)) != 0) + return err; + + old = pci_read_byte(dev, 0xd9); + printf_debug("BIOS Prefetch Enable: %sabled, ", + (old & 1) ? "en" : "dis"); + new = old & ~1; + + if (new != old) + pci_write_byte(dev, 0xd9, new); + + return 0; +} + + #define ICH_STRAP_RSVD 0x00 #define ICH_STRAP_SPI 0x01 #define ICH_STRAP_PCI 0x02 @@ -1155,6 +1176,7 @@ const struct penable chipset_enables[] = { {0x8086, 0x7000, OK, "Intel", "PIIX3", enable_flash_piix4}, {0x8086, 0x7110, OK, "Intel", "PIIX4/4E/4M", enable_flash_piix4}, {0x8086, 0x122e, OK, "Intel", "PIIX", enable_flash_piix4}, + {0x8086, 0x8119, OK, "Intel", "Poulsbo", enable_flash_poulsbo}, {0x10de, 0x0030, OK, "NVIDIA", "nForce4/MCP4", enable_flash_nvidia_nforce2}, {0x10de, 0x0050, OK, "NVIDIA", "CK804", enable_flash_ck804}, /* LPC */ {0x10de, 0x0051, OK, "NVIDIA", "CK804", enable_flash_ck804}, /* Pro */ |