summaryrefslogtreecommitdiffstats
path: root/spi.c
diff options
context:
space:
mode:
authorIdwer Vollering <vidwer@gmail.com>2010-09-03 18:21:21 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-09-03 18:21:21 +0000
commit004f4b7954aebedff506119a12a752be9e4e9334 (patch)
treeb0e94febe10eba982ee3b5c227c33748ba374615 /spi.c
parent67db2eb92c3f4858528d19e7921b08c5ec6dbdc9 (diff)
downloadast2050-flashrom-004f4b7954aebedff506119a12a752be9e4e9334.zip
ast2050-flashrom-004f4b7954aebedff506119a12a752be9e4e9334.tar.gz
Add Intel Gigabit NIC SPI flashing support
Tested on a 82541PI (0x8086, 0x107c) using 32-bit hardware. The last line in nicintel_request_spibus() could be changed so that FL_BUSY is used instead. Shortened sample log: [...] Found "Intel 82541PI Gigabit Ethernet Controller" (8086:107c, BDF 01:03.0). Found chip "ST M25P10.RES" (128 KB, SPI) at physical address 0xfffe0000. Multiple flash chips were detected: M25P05.RES M25P10.RES Please specify which chip to use with the -c <chipname> option. [...] Corresponding to flashrom svn r1151. Signed-off-by: Idwer Vollering <vidwer@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'spi.c')
-rw-r--r--spi.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/spi.c b/spi.c
index ebacd60..e892e74 100644
--- a/spi.c
+++ b/spi.c
@@ -136,6 +136,15 @@ const struct spi_programmer spi_programmer[] = {
},
#endif
+#if CONFIG_NICINTEL_SPI == 1
+ { /* SPI_CONTROLLER_NICINTEL */
+ .command = bitbang_spi_send_command,
+ .multicommand = default_spi_send_multicommand,
+ .read = bitbang_spi_read,
+ .write_256 = bitbang_spi_write_256,
+ },
+#endif
+
{}, /* This entry corresponds to SPI_CONTROLLER_INVALID. */
};
OpenPOWER on IntegriCloud