1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-30 08:23:42 +02:00

Add NForce2 chipset enable

While the other chipset enables for nvidia could potentially also work,
this one, by not touching other bits, seems like the safest solution.

Uwe tested this on his Asus A7N8X Deluxe, so hopefully the A7N8X-E
(reporter unknown) is now no longer an issue.

Corresponding to flashrom svn r548.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Luc Verhaegen 2009-05-26 09:48:28 +00:00
parent 24c1a16030
commit 90e8e61318
2 changed files with 15 additions and 1 deletions

View File

@ -717,6 +717,7 @@ const struct board_info boards_ok[] = {
{ "ASUS", "P2B-F", }, { "ASUS", "P2B-F", },
{ "ASUS", "P2B-D", }, { "ASUS", "P2B-D", },
{ "ASUS", "P2B-DS", }, { "ASUS", "P2B-DS", },
{ "ASUS", "A7N8X Deluxe", },
{ "ASUS", "A7V400-MX", }, { "ASUS", "A7V400-MX", },
{ "ASUS", "A7V8X-MX", }, { "ASUS", "A7V8X-MX", },
{ "ASUS", "P4B266", }, { "ASUS", "P4B266", },
@ -781,7 +782,6 @@ const struct board_info boards_ok[] = {
const struct board_info boards_bad[] = { const struct board_info boards_bad[] = {
/* Verified non-working boards (for now). */ /* Verified non-working boards (for now). */
{ "Abit", "IS-10", }, { "Abit", "IS-10", },
{ "ASUS", "A7N8X-E Deluxe", },
{ "ASUS", "MEW-AM", }, { "ASUS", "MEW-AM", },
{ "ASUS", "MEW-VM", }, { "ASUS", "MEW-VM", },
{ "ASUS", "P3B-F", }, { "ASUS", "P3B-F", },

View File

@ -769,6 +769,19 @@ static int enable_flash_sb600(struct pci_dev *dev, const char *name)
return 0; return 0;
} }
static int enable_flash_nvidia_nforce2(struct pci_dev *dev, const char *name)
{
uint8_t tmp;
pci_write_byte(dev, 0x92, 0);
tmp = pci_read_byte(dev, 0x6d);
tmp |= 0x01;
pci_write_byte(dev, 0x6d, tmp);
return 0;
}
static int enable_flash_ck804(struct pci_dev *dev, const char *name) static int enable_flash_ck804(struct pci_dev *dev, const char *name)
{ {
uint8_t old, new; uint8_t old, new;
@ -981,6 +994,7 @@ const struct penable chipset_enables[] = {
{0x8086, 0x122e, OK, "Intel", "PIIX", enable_flash_piix4}, {0x8086, 0x122e, OK, "Intel", "PIIX", enable_flash_piix4},
{0x10de, 0x0050, OK, "NVIDIA", "CK804", enable_flash_ck804}, /* LPC */ {0x10de, 0x0050, OK, "NVIDIA", "CK804", enable_flash_ck804}, /* LPC */
{0x10de, 0x0051, OK, "NVIDIA", "CK804", enable_flash_ck804}, /* Pro */ {0x10de, 0x0051, OK, "NVIDIA", "CK804", enable_flash_ck804}, /* Pro */
{0x10de, 0x0060, OK, "NVIDIA", "NForce2", enable_flash_nvidia_nforce2},
/* Slave, should not be here, to fix known bug for A01. */ /* Slave, should not be here, to fix known bug for A01. */
{0x10de, 0x00d3, OK, "NVIDIA", "CK804", enable_flash_ck804}, {0x10de, 0x00d3, OK, "NVIDIA", "CK804", enable_flash_ck804},
{0x10de, 0x0260, NT, "NVIDIA", "MCP51", enable_flash_ck804}, {0x10de, 0x0260, NT, "NVIDIA", "MCP51", enable_flash_ck804},