From: Sam Song Date: Tue, 8 Aug 2006 09:59:56 +0800 (CST) Subject: [U-Boot-Users] [RFC] CFI Driver Little-Endian write Issue In-Reply-To: <17623.7752.296873.439063@astp0002.localdomain> Message-ID: <20060808015956.15375.qmail@web15906.mail.cnb.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Yuli Barcohen 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