| Index: programmer.h
|
| diff --git a/programmer.h b/programmer.h
|
| index d6ba8a0a6a30ab51316138e31f02f6c1a8271837..373a63df294dc78913950e674f776555198015e8 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);
|
| +void 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__ */
|
|
|