mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
Add flash enable for sc1100
Corresponding to coreboot v1 svn r856.
This commit is contained in:
parent
772f6457b0
commit
afe44a97fd
18
flash_rom.c
18
flash_rom.c
@ -226,6 +226,23 @@ enable_flash_cs5530(struct pci_dev *dev, char *name) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
enable_flash_sc1100(struct pci_dev *dev, char *name) {
|
||||||
|
unsigned char new;
|
||||||
|
int ok;
|
||||||
|
|
||||||
|
pci_write_byte(dev, 0x52, 0xee);
|
||||||
|
|
||||||
|
new = pci_read_byte(dev, 0x52);
|
||||||
|
|
||||||
|
if (new != 0xee) {
|
||||||
|
printf("tried to set register 0x%x to 0x%x on %s failed (WARNING ONLY)\n",
|
||||||
|
0x52, new, name);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
enable_flash_sis5595(struct pci_dev *dev, char *name) {
|
enable_flash_sis5595(struct pci_dev *dev, char *name) {
|
||||||
unsigned char new, newer;
|
unsigned char new, newer;
|
||||||
@ -365,6 +382,7 @@ FLASH_ENABLE enables[] = {
|
|||||||
{0x1106, 0x8231, "VT8231", enable_flash_vt8231},
|
{0x1106, 0x8231, "VT8231", enable_flash_vt8231},
|
||||||
{0x1106, 0x3177, "VT8235", enable_flash_vt8235},
|
{0x1106, 0x3177, "VT8235", enable_flash_vt8235},
|
||||||
{0x1078, 0x0100, "CS5530", enable_flash_cs5530},
|
{0x1078, 0x0100, "CS5530", enable_flash_cs5530},
|
||||||
|
{0x100b, 0x0510, "SC1100", enable_flash_sc1100},
|
||||||
{0x1039, 0x8, "SIS5595", enable_flash_sis5595},
|
{0x1039, 0x8, "SIS5595", enable_flash_sis5595},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user