summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorBoris Baykov <dev@borisbaykov.com>2016-06-08 12:23:54 +0200
committerCédric Le Goater <clg@kaod.org>2016-06-08 12:23:54 +0200
commitabe0b5d2230221c7bcd2d9cea49f393c83ed61f7 (patch)
treef1e257f14a6bde2e61594aa13572df4f3a28cf34 /flashchips.c
parentf059078f2a2a3a06ea5326cfb2d83c959e469f9d (diff)
downloadflashrom-abe0b5d2230221c7bcd2d9cea49f393c83ed61f7.zip
flashrom-abe0b5d2230221c7bcd2d9cea49f393c83ed61f7.tar.gz
4BA: Flashrom integration for the 4-bytes addressing extensions
This patch integrates code of the previous patch into Flashrom's code. All the integrations is around 3 functions spi_nbyte_read, spi_nbyte_program and spi_byte_program. After this patch then are not static and can be called by their pointers saved in flashchips array. Also I added to flashrom.c some code to switch a chip to 4-bytes addressing mode. And one error message is corrected in spi.c because it's not suitable for 32-bit addresses. Patched files ------------- flash.h + added set of 4-bytes address functions to flashchip structure definition flashrom.c + added switch to 4-bytes addressing more for chips which support it serprog.c + added 4-bytes addressing spi_nbyte_read call to serprog_spi_read spi.c + fixed flash chip size check in spi_chip_read spi25.c + added 4-bytes addressing spi_nbyte_read call to spi_read_chunked + added 4-bytes addressing spi_nbyte_program call to spi_write_chunked + added 4-bytes addressing spi_byte_program call to spi_chip_write_1 Signed-off-by: Boris Baykov <dev@borisbaykov.com>, Russia, Jan 2014 [clg: ported from https://www.flashrom.org/pipermail/flashrom/2015-January/013205.html ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'flashchips.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud