diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-17 12:54:09 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-17 12:54:09 +0000 |
commit | cd92961dd5d86a8ee0d9133d70932234a6b8c27d (patch) | |
tree | ac83a822a78d0e27c96c9278943b8051107ec722 /flash.h | |
parent | 599ffe621f55ce158398c22d8e49bb5d314abaed (diff) | |
download | flashrom-cd92961dd5d86a8ee0d9133d70932234a6b8c27d.zip flashrom-cd92961dd5d86a8ee0d9133d70932234a6b8c27d.tar.gz |
Change the SPI bitbanging core to fix a subtle bug (which had no effect so far) and to make integration of the RayeR SPIPGM and Nvidia
MCP6x/MCP7x SPI patches easier. Kill a few global variables and require
explicit initialization of bitbanging delay. Binary file (standard input)
matches
Corresponding to flashrom svn r1085.
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -133,8 +133,6 @@ enum bitbang_spi_master { extern const int bitbang_spi_master_count; -extern enum bitbang_spi_master bitbang_spi_master; - struct bitbang_spi_master_entry { void (*set_cs) (int val); void (*set_sck) (int val); @@ -533,9 +531,7 @@ int ft2232_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); int ft2232_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len); /* bitbang_spi.c */ -extern int bitbang_spi_half_period; -extern const struct bitbang_spi_master_entry bitbang_spi_master_table[]; -int bitbang_spi_init(void); +int bitbang_spi_init(enum bitbang_spi_master master, int halfperiod); int bitbang_spi_send_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr); int bitbang_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); int bitbang_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len); |