summaryrefslogtreecommitdiffstats
path: root/include/configs/ls1021atwr.h
diff options
context:
space:
mode:
authorYuan Yao <yao.yuan@freescale.com>2014-10-17 15:26:34 +0800
committerYork Sun <yorksun@freescale.com>2014-11-24 09:27:23 -0800
commit272c5265ed8f4bf1f02f2d2b38828fbf8939cac3 (patch)
tree672df4955f328a523b12935bde3e671a0d0c4fce /include/configs/ls1021atwr.h
parentc207ff612903389f8b32e377fe32be43e6efd8f7 (diff)
downloadtalos-obmc-uboot-272c5265ed8f4bf1f02f2d2b38828fbf8939cac3.tar.gz
talos-obmc-uboot-272c5265ed8f4bf1f02f2d2b38828fbf8939cac3.zip
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>
Diffstat (limited to 'include/configs/ls1021atwr.h')
-rw-r--r--include/configs/ls1021atwr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index 96b1547963..34cec6515c 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -99,6 +99,7 @@
#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE_PHYS }
#define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
+#define CONFIG_SYS_WRITE_SWAPPED_DATA
/* CPLD */
OpenPOWER on IntegriCloud