From 819180db2d62e16946e2ce9d59bdc3998465df25 Mon Sep 17 00:00:00 2001 From: Ricardo Ribalda Delgado Date: Mon, 28 Jul 2014 20:35:21 +0000 Subject: Add new programmer for SPI EEPROMs attached to Intel 82580 NICs This patch lets you read and write the EEPROM on 82580-based gigabit NIC cards. So far it has been tested on copper NICs only, but other variants employing this controller should work too. It is a nice substitution for the official eeupdate tool. Speed is quite decent: less than 4 seconds for erases or writes of 32 kB. Tested-by: Ricardo Ribalda Delgado Corresponding to flashrom svn r1832. Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- flashrom.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index 83bc89a..fc8b073 100644 --- a/flashrom.c +++ b/flashrom.c @@ -297,6 +297,18 @@ const struct programmer_entry programmer_table[] = { }, #endif +#if CONFIG_NICINTEL_EEPROM == 1 + { + .name = "nicintel_eeprom", + .type = PCI, + .devs.dev = nics_intel_ee, + .init = nicintel_ee_init, + .map_flash_region = fallback_map, + .unmap_flash_region = fallback_unmap, + .delay = internal_delay, + }, +#endif + #if CONFIG_OGP_SPI == 1 { .name = "ogp_spi", -- cgit v1.1