Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Unified Diff: programmer.h

Issue 6731011: Add Tegra2 SPI controller. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flashrom.git@master
Patch Set: refine comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: programmer.h
diff --git a/programmer.h b/programmer.h
index d6ba8a0a6a30ab51316138e31f02f6c1a8271837..da785995fcda51e2048d782d5f353d4b683cf178 100644
--- a/programmer.h
+++ b/programmer.h
@@ -523,6 +523,9 @@ enum spi_controller {
SPI_CONTROLLER_MCP6X_BITBANG,
SPI_CONTROLLER_WPCE775X,
#endif
+#if defined(__arm__)
+ SPI_CONTROLLER_TEGRA2,
+#endif
#endif
#if CONFIG_FT2232_SPI == 1
SPI_CONTROLLER_FT2232,
@@ -660,4 +663,15 @@ int serialport_shutdown(void);
int serialport_write(unsigned char *buf, unsigned int writecnt);
int serialport_read(unsigned char *buf, unsigned int readcnt);
+
+/* tegra2_spi.c */
+#if CONFIG_INTERNAL == 1
+int tegra2_spi_init(void);
+int tegra2_spi_shutdown(void);
+int tegra2_spi_send_command(unsigned int writecnt, unsigned int readcnt,
+ const unsigned char *writearr, unsigned char *readarr);
+int tegra2_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);
+int tegra2_spi_write(struct flashchip *flash, uint8_t *buf, int start, int len);
+#endif
+
#endif /* !__PROGRAMMER_H__ */

Powered by Google App Engine
This is Rietveld 408576698