Skip to content

Commit

Permalink
Allow the SiS 620 chipset to detect and read at least 256kb chips
Browse files Browse the repository at this point in the history
Based on the 5595 datasheet and uniflash 1.40 sources, only looking for info
about SiS620.

Corresponding to flashrom svn r325 and coreboot v2 svn r3668.

Signed-off-by: Urja Rannikko <[email protected]>
Acked-by: Peter Stuge <[email protected]>
  • Loading branch information
urjaman authored and Peter Stuge committed Oct 18, 2008
1 parent 3af487d commit a88daa7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chipset_enable.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,17 @@ static int enable_flash_sis5595(struct pci_dev *dev, const char *name)
return -1;
}

/* Extended BIOS enable = 1, Lower BIOS Enable = 1 */
new = pci_read_byte(dev,0x40);
new &= 0xFB;
new |= 0x3;
pci_write_byte(dev,0x40,new);
newer = pci_read_byte(dev,0x40);
if (newer != new) {
printf("tried to set register 0x%x to 0x%x on %s failed (WARNING ONLY)\n", 0x40, new, name);
printf("Stuck at 0x%x\n", newer);
return -1;
}
return 0;
}

Expand Down

0 comments on commit a88daa7

Please sign in to comment.