Commit 379f0b0b authored by oharboe's avatar oharboe
Browse files

disable cfi_write_words(). Broken for spansion, fallback

is a slower codepath that is reported to work.

git-svn-id: svn://svn.berlios.de/openocd/trunk@331 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 2fe9bf16
......@@ -1745,6 +1745,8 @@ int cfi_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
{
INFO("Programming at %08x, count %08x bytes remaining", write_p, count);
}
#if 0
/* NB! this is broken for spansion! */
if ((count > bufferwsize) && !(write_p & buffermask))
{
retval = cfi_write_words(bank, buffer, bufferwsize, write_p);
......@@ -1756,6 +1758,7 @@ int cfi_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
count -= buffersize;
}
else
#endif
{
for (i = 0; i < bank->bus_width; i++)
current_word[i] = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment