NOR/CFI: use bus_width for memory access in cfi_write()
commit34f70956ed31c2739d34bae23fa6ca620e5299f8
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 7 May 2010 05:50:42 +0000 (7 13:50 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 16 May 2010 11:39:47 +0000 (16 13:39 +0200)
tree4a922c4ac7f5537fb9319e1684ec4c9319d40c13
parenta69cbf0f74015993d749bdfe1a80f4b5a8bb6dc3
NOR/CFI: use bus_width for memory access in cfi_write()

During cfi_write(), head and tail of destination area
could be not aligned to bus_width.
Since write operation must be at bus_width size, source
buffer size is extended and buffer padded with current
values read from flash.

Force using bus_width to read current value from flash.
Do not use cfi_add_byte() anymore, to allow removing this
function later on.

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