commit | da17d1adea183d12e53fea01d2d6ee8697eb068f | [log] [tgz] |
---|---|---|
author | Yuan Yao <yao.yuan@freescale.com> | Fri Oct 17 15:26:34 2014 +0800 |
committer | York Sun <yorksun@freescale.com> | Mon Nov 24 09:27:23 2014 -0800 |
tree | 672df4955f328a523b12935bde3e671a0d0c4fce | |
parent | f4491ad6b7274542ea2be26a947b2dc461731d2a [diff] |
ls102xa: ifc: nor: fix the write issue when bytes unaligned Add define CONFIG_SYS_WRITE_SWAPPED_DATA. For LS1021AQDS and LS1021QTWR nor flash write should swap the bytes when handle unaligned tail bytes. Because of the ending, if the date bus width is 16-bits and the number of bytes is odd, we should swap the byte when write the last one. Signed-off-by: Yuan Yao <yao.yuan@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>