]> git.sur5r.net Git - openocd/commit
NOR/CFI: use bus_width for memory access on flash ID.
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 23 Apr 2010 04:07:53 +0000 (12:07 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 16 May 2010 11:39:47 +0000 (13:39 +0200)
commita69cbf0f74015993d749bdfe1a80f4b5a8bb6dc3
tree7254f673f1aa5c86ee1dd9f2b0c9684235919f11
parent61bb0d3d235c659eb407a7032aa9ec70a914dc03
NOR/CFI: use bus_width for memory access on flash ID.

NOR flash structure requires each access to be bus_width wide.
Fix read of flash ID accordingly to rule above.
Add case (chip_width == 4), allowed by CFI spec and coherent
with current value of CFI_MAX_CHIP_WIDTH but currently not
used by any target.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/cfi.c