summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2014-08-08 08:33:01 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-08-08 08:33:01 +0000
commita8cf3620a42ca5927253822a813e3fbae1d6e7bf (patch)
tree64ff1e62b06ee89492c914e11c86b54ddf126b0c /flash.h
parent6697f71ade7b6428c7be6051c02dbb9768900e04 (diff)
downloadast2050-flashrom-a8cf3620a42ca5927253822a813e3fbae1d6e7bf.zip
ast2050-flashrom-a8cf3620a42ca5927253822a813e3fbae1d6e7bf.tar.gz
Unify non-shifted and shifted JEDEC access
Some Parallel bus chips have a 16-bit mode and an 8-bit mode. They use normal JEDEC addresses for 16-bit mode and shifted addresses (by 1 bit) for 8-bit mode. Some programmers can access them in 16-bit mode, but on all flashrom-supported programmers so far, we access them in 8-bit mode. This means we have to shift the addresses but apart from the addresses we can share the code. This patch makes this possible by checking the chip's FEATURE_ADDR_SHIFTED flag in common JEDEC functions and applying the right addresses respectively. Corresponding to flashrom svn r1840. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flash.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud