diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2012-02-07 21:29:48 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2012-02-07 21:29:48 +0000 |
commit | 997a454f640e610a0a7ed5f9072300e455292c26 (patch) | |
tree | 36f5d4cee4dace04084f22053dc1d542d85eeb29 /chipset_enable.c | |
parent | 9ef83742d7207c9028cd7382c1cfed526e437e94 (diff) | |
download | flashrom-997a454f640e610a0a7ed5f9072300e455292c26.zip flashrom-997a454f640e610a0a7ed5f9072300e455292c26.tar.gz |
Add support for RDC R6030 chipset
Tested on Bifferboard.
Corresponding to flashrom svn r1489.
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index fbf7fb9..33b32ef 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -54,6 +54,32 @@ static int enable_flash_ali_m1533(struct pci_dev *dev, const char *name) return 0; } +static int enable_flash_rdc_r8610(struct pci_dev *dev, const char *name) +{ + uint8_t tmp; + + /* enable ROMCS for writes */ + tmp = pci_read_byte(dev, 0x43); + tmp |= 0x80; + pci_write_byte(dev, 0x43, tmp); + + /* read the bootstrapping register */ + tmp = pci_read_byte(dev, 0x40) & 0x3; + switch (tmp) { + case 3: + internal_buses_supported = BUS_FWH; + break; + case 2: + internal_buses_supported = BUS_LPC; + break; + default: + internal_buses_supported = BUS_PARALLEL; + break; + } + + return 0; +} + static int enable_flash_sis85c496(struct pci_dev *dev, const char *name) { uint8_t tmp; @@ -1235,6 +1261,7 @@ const struct penable chipset_enables[] = { {0x1106, 0x8409, OK, "VIA", "VX855/VX875", enable_flash_vt823x}, {0x1166, 0x0200, OK, "Broadcom", "OSB4", enable_flash_osb4}, {0x1166, 0x0205, OK, "Broadcom", "HT-1000", enable_flash_ht1000}, + {0x17f3, 0x6030, OK, "RDC", "R8610/R3210", enable_flash_rdc_r8610}, {0x8086, 0x122e, OK, "Intel", "PIIX", enable_flash_piix4}, {0x8086, 0x1234, NT, "Intel", "MPIIX", enable_flash_piix4}, {0x8086, 0x1c44, OK, "Intel", "Z68", enable_flash_pch6}, |