diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2014-07-28 20:35:21 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-07-28 20:35:21 +0000 |
commit | 2a41f0a2c0daeb0ee2a38a252ab96135d70a6b81 (patch) | |
tree | 9d9c28c7560f4947c49e54e62c1f3a04f07aec45 /programmer.h | |
parent | a5bcbceb581f27cfc0055369d3dd9cfd1ae00bfa (diff) | |
download | flashrom-2a41f0a2c0daeb0ee2a38a252ab96135d70a6b81.tar.gz flashrom-2a41f0a2c0daeb0ee2a38a252ab96135d70a6b81.tar.bz2 flashrom-2a41f0a2c0daeb0ee2a38a252ab96135d70a6b81.zip |
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.
Corresponding to flashrom svn r1832.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Tested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'programmer.h')
-rw-r--r-- | programmer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h index 093240b17..3ad553aba 100644 --- a/programmer.h +++ b/programmer.h @@ -84,6 +84,9 @@ enum programmer { #if CONFIG_NICINTEL_SPI == 1 PROGRAMMER_NICINTEL_SPI, #endif +#if CONFIG_NICINTEL_EEPROM == 1 + PROGRAMMER_NICINTEL_EEPROM, +#endif #if CONFIG_OGP_SPI == 1 PROGRAMMER_OGP_SPI, #endif @@ -416,6 +419,12 @@ int nicintel_spi_init(void); extern const struct dev_entry nics_intel_spi[]; #endif +/* nicintel_eeprom.c */ +#if CONFIG_NICINTEL_EEPROM == 1 +int nicintel_ee_init(void); +extern const struct dev_entry nics_intel_ee[]; +#endif + /* ogp_spi.c */ #if CONFIG_OGP_SPI == 1 int ogp_spi_init(void); |