On Sat, Oct 18, 2008 at 4:11 AM, Urja Rannikko <[EMAIL PROTECTED]> wrote:
> Hello,
>
> This patch allows the SiS 620 chipset to detect flash roms, and read
> them fully (256k atleast). The information on what to do was read from
> alldatasheet.com sis 5595 datasheet and uniflash 1.40 source, note
> that i looked for only SiS620.
Sorry, forgot the Signed-off by due to never sending a patch before
(but i had read the guidelines) and sending it in a hurry (to get to
sleep, time was 04:00+...).
Signed-off-by: Urja Rannikko <[EMAIL PROTECTED]>
--
urjaman
Index: chipset_enable.c
===================================================================
--- chipset_enable.c (revision 3667)
+++ chipset_enable.c (working copy)
@@ -540,6 +540,17 @@
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;
}
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot