[U-Boot-Users] [RFC] CFI Driver Little-Endian write Issue

Sam Song samsongshu at yahoo.com.cn
Tue Aug 8 03:59:56 CEST 2006


Yuli Barcohen <yuli at arabellasw.com> wrote:
> Sounds like it's the (in)famous byte lanes 
> swapping issue. It's so
[snip]
> system to test it (my tree is not fully merged with
> official GIT right
> now so I'm not sending a patch, I can prepare one if
> you think the
> approach is OK).

Indeed, I applied this CFI Driver on MPC7448HPC2
and it did work. But a small puzzle is that 
CFG_FLASH_CFI_SWAP shouldn't be tied to
__LITTLE_ENDIAN. According to my test, they
two can be set separetely.

diff --git a/include/configs/taiga.h
b/include/configs/taiga.h
index 8d4e9ad..878f268 100644
--- a/include/configs/taiga.h
+++ b/include/configs/taiga.h
@@ -500,6 +500,7 @@ #define CFG_BOOTMAPSZ    (8<<20)
/* Init
  */
 #define CFG_FLASH_CFI           1       
 #define CFG_FLASH_CFI_DRIVER    1       
+#define CFG_FLASH_CFI_SWAP
 #define CFG_FLASH_USE_BUFFER_WRITE 1 
/* Disable CFG_FLASH_USE_BUFFER_WRITE is OK */
#define CFG_MAX_FLASH_BANKS     1

Thanks a lot,

Sam

__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfi_debug
Type: application/octet-stream
Size: 8094 bytes
Desc: 1820405661-cfi_debug
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060808/3cccad4d/attachment.obj 


More information about the U-Boot mailing list