summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-28 15:08:35 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-28 15:08:35 +0000
commit5d1a445f195492e4c5cc02bf588c2ee48b1119ec (patch)
treeaeb262cf0a555f42e00890c5907e8ac6f537a4b4 /programmer.h
parent6ad3d6126cfc465a0c00d4829d97ebba054f5d1d (diff)
downloadflashrom-5d1a445f195492e4c5cc02bf588c2ee48b1119ec.zip
flashrom-5d1a445f195492e4c5cc02bf588c2ee48b1119ec.tar.gz
Add Nvidia nForce MCP61/MCP65/MCP67/MCP78S/MCP73/MCP79 SPI flashing support
Huge thanks go to Michael Karcher for reverse engineering the interface Binary file (standard input) matches Corresponding to flashrom svn r1113.
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h
index 68ad500..226db04 100644
--- a/programmer.h
+++ b/programmer.h
@@ -110,6 +110,11 @@ enum bitbang_spi_master_type {
#if CONFIG_RAYER_SPI == 1
BITBANG_SPI_MASTER_RAYER,
#endif
+#if CONFIG_INTERNAL == 1
+#if defined(__i386__) || defined(__x86_64__)
+ BITBANG_SPI_MASTER_MCP,
+#endif
+#endif
};
struct bitbang_spi_master {
@@ -404,6 +409,13 @@ int ft2232_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int l
int rayer_spi_init(void);
#endif
+/* mcp6x_spi.c */
+#if CONFIG_INTERNAL == 1
+#if defined(__i386__) || defined(__x86_64__)
+int mcp6x_spi_init(int want_spi);
+#endif
+#endif
+
/* bitbang_spi.c */
int bitbang_spi_init(const struct bitbang_spi_master *master, int halfperiod);
int bitbang_spi_send_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr);
@@ -455,6 +467,7 @@ enum spi_controller {
SPI_CONTROLLER_SB600,
SPI_CONTROLLER_VIA,
SPI_CONTROLLER_WBSIO,
+ SPI_CONTROLLER_MCP6X_BITBANG,
#endif
#endif
#if CONFIG_FT2232_SPI == 1
OpenPOWER on IntegriCloud