summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorTURBO J <turboj@gmx.de>2009-09-02 23:00:46 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-09-02 23:00:46 +0000
commitb0912c0adbe3d46bc49babe8c22388da7230d473 (patch)
tree6329f60d35e478942631b8f210b288e67dd96926 /flashrom.c
parent04aa59a8645510f212fc6a270b48a883f3d00fa5 (diff)
downloadflashrom-b0912c0adbe3d46bc49babe8c22388da7230d473.tar.gz
flashrom-b0912c0adbe3d46bc49babe8c22388da7230d473.tar.bz2
flashrom-b0912c0adbe3d46bc49babe8c22388da7230d473.zip
Add support for parallel flash on Dr. Kaiser PC-Waechter PCI devices
The vendor sold different designs under that name, the patch works with the one that has an Actel FPGA as PCI-to-Flash bridge. The Flash chip is a "Macronix MX29F001B" (128 KB, parallel) soldered directly to the PCB. Flash operations (PROBE, READ, ERASE, WRITE) work as expected. Corresponding to flashrom svn r712. Signed-off-by: TURBO J <turboj@gmx.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index fc803015d..6da6741a6 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -89,6 +89,23 @@ const struct programmer_entry programmer_table[] = {
},
{
+ .name = "drkaiser",
+ .init = drkaiser_init,
+ .shutdown = drkaiser_shutdown,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .chip_readb = drkaiser_chip_readb,
+ .chip_readw = fallback_chip_readw,
+ .chip_readl = fallback_chip_readl,
+ .chip_readn = fallback_chip_readn,
+ .chip_writeb = drkaiser_chip_writeb,
+ .chip_writew = fallback_chip_writew,
+ .chip_writel = fallback_chip_writel,
+ .chip_writen = fallback_chip_writen,
+ .delay = internal_delay,
+ },
+
+ {
.name = "satasii",
.init = satasii_init,
.shutdown = satasii_shutdown,
@@ -747,6 +764,7 @@ int main(int argc, char *argv[])
printf("\nSupported PCI devices flashrom can use "
"as programmer:\n\n");
print_supported_pcidevs(nics_3com);
+ print_supported_pcidevs(drkaiser_pcidev);
print_supported_pcidevs(satas_sii);
exit(0);
}