OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the flashrom project. | 2 * This file is part of the flashrom project. |
3 * | 3 * |
4 * Copyright (C) 2000 Silicon Integrated System Corporation | 4 * Copyright (C) 2000 Silicon Integrated System Corporation |
5 * Copyright (C) 2000 Ronald G. Minnich <rminnich@gmail.com> | 5 * Copyright (C) 2000 Ronald G. Minnich <rminnich@gmail.com> |
6 * Copyright (C) 2005-2009 coresystems GmbH | 6 * Copyright (C) 2005-2009 coresystems GmbH |
7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger | 7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
8 * | 8 * |
9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 SPI_CONTROLLER_ICH9, | 516 SPI_CONTROLLER_ICH9, |
517 SPI_CONTROLLER_IT85XX, | 517 SPI_CONTROLLER_IT85XX, |
518 SPI_CONTROLLER_IT87XX, | 518 SPI_CONTROLLER_IT87XX, |
519 SPI_CONTROLLER_MEC1308, | 519 SPI_CONTROLLER_MEC1308, |
520 SPI_CONTROLLER_SB600, | 520 SPI_CONTROLLER_SB600, |
521 SPI_CONTROLLER_VIA, | 521 SPI_CONTROLLER_VIA, |
522 SPI_CONTROLLER_WBSIO, | 522 SPI_CONTROLLER_WBSIO, |
523 SPI_CONTROLLER_MCP6X_BITBANG, | 523 SPI_CONTROLLER_MCP6X_BITBANG, |
524 SPI_CONTROLLER_WPCE775X, | 524 SPI_CONTROLLER_WPCE775X, |
525 #endif | 525 #endif |
| 526 #if defined(__arm__) |
| 527 SPI_CONTROLLER_TEGRA2, |
| 528 #endif |
526 #endif | 529 #endif |
527 #if CONFIG_FT2232_SPI == 1 | 530 #if CONFIG_FT2232_SPI == 1 |
528 SPI_CONTROLLER_FT2232, | 531 SPI_CONTROLLER_FT2232, |
529 #endif | 532 #endif |
530 #if CONFIG_DUMMY == 1 | 533 #if CONFIG_DUMMY == 1 |
531 SPI_CONTROLLER_DUMMY, | 534 SPI_CONTROLLER_DUMMY, |
532 #endif | 535 #endif |
533 #if CONFIG_BUSPIRATE_SPI == 1 | 536 #if CONFIG_BUSPIRATE_SPI == 1 |
534 SPI_CONTROLLER_BUSPIRATE, | 537 SPI_CONTROLLER_BUSPIRATE, |
535 #endif | 538 #endif |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 unsigned char *readarr); | 656 unsigned char *readarr); |
654 | 657 |
655 void sp_flush_incoming(void); | 658 void sp_flush_incoming(void); |
656 fdtype sp_openserport(char *dev, unsigned int baud); | 659 fdtype sp_openserport(char *dev, unsigned int baud); |
657 void __attribute__((noreturn)) sp_die(char *msg); | 660 void __attribute__((noreturn)) sp_die(char *msg); |
658 extern fdtype sp_fd; | 661 extern fdtype sp_fd; |
659 int serialport_shutdown(void); | 662 int serialport_shutdown(void); |
660 int serialport_write(unsigned char *buf, unsigned int writecnt); | 663 int serialport_write(unsigned char *buf, unsigned int writecnt); |
661 int serialport_read(unsigned char *buf, unsigned int readcnt); | 664 int serialport_read(unsigned char *buf, unsigned int readcnt); |
662 | 665 |
| 666 |
| 667 /* tegra2_spi.c */ |
| 668 #if CONFIG_INTERNAL == 1 |
| 669 int tegra2_spi_init(void); |
| 670 void tegra2_spi_shutdown(void*); |
| 671 int tegra2_spi_send_command(unsigned int writecnt, unsigned int readcnt, |
| 672 const unsigned char *writearr, unsigned char *readarr); |
| 673 int tegra2_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); |
| 674 int tegra2_spi_write(struct flashchip *flash, uint8_t *buf, int start, int len); |
| 675 #endif |
| 676 |
663 #endif /* !__PROGRAMMER_H__ */ | 677 #endif /* !__PROGRAMMER_H__ */ |
OLD | NEW |