public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [RFC] CFI Driver Little-Endian write Issue
@ 2006-08-04 12:32 Sam Song
  2006-08-04 13:44 ` Wolfgang Denk
  2006-08-07  7:24 ` Zang Roy-r61911
  0 siblings, 2 replies; 31+ messages in thread
From: Sam Song @ 2006-08-04 12:32 UTC (permalink / raw)
  To: u-boot

Hello Ed Okerson,

Recently, Roy Zang released MPC7448 HPC-II
platform support to this list and found a
CFI Flash driver problem - North-bridge
chip TSI108 working as little-endian but write
to Flash is byte-swapped in a wrong way. 
The workaround is to enable 
CFG_FLASH_USE_BUFFER_WRITE in little endian 
setting. However, CFG_FLASH_USE_BUFFER_WRITE
should have nothing to do with little endian
if I am right. So I suspect flash writing
with little endian could have some problems.

Once I removed little endian stuff in 
flash_add_byte(), CFI Driver was funtional
for MPC7448 HPC-II with/without 
CFG_FLASH_USE_BUFFER_WRITE. So I'd like to 
make sure whether my fix is a general thing 
or just a luck. 

Thanks,

Sam


	

	
		
___________________________________________________________ 
Mp3???-???????
http://music.yahoo.com.cn/?source=mail_mailbox_footer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfi.diff
Type: text/x-patch
Size: 1490 bytes
Desc: pat1625328208
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060804/b5ce54e5/attachment.bin 

^ permalink raw reply	[flat|nested] 31+ messages in thread
* [U-Boot-Users] [RFC] CFI Driver Little-Endian write Issue
@ 2006-08-08 11:21 Li Yang-r58472
  2006-08-08 13:47 ` Yuli Barcohen
  0 siblings, 1 reply; 31+ messages in thread
From: Li Yang-r58472 @ 2006-08-08 11:21 UTC (permalink / raw)
  To: u-boot

Please ignore my last question.  Lately, I find out in your .c file that
there are still some places using __LITTLE_ENDIAN.

However, I still have a question that in which condition
CFG_FLASH_CFI_SWAP is required to set?

Best Regards,
Leo
> -----Original Message-----
> From: Li Yang-r58472
> Sent: Tuesday, August 08, 2006 7:11 PM
> To: 'Yuli Barcohen'; u-boot-users at lists.sourceforge.net
> Cc: Sam Song; Wolfgang Denk
> Subject: RE: [U-Boot-Users] [RFC] CFI Driver Little-Endian write Issue
> 
> +#if defined(__LITTLE_ENDIAN) && !defined(CFG_FLASH_CFI_SWAP)
> +#define CFG_FLASH_CFI_SWAP
> +#endif
> +
> [snip]
> -#if defined(__LITTLE_ENDIAN)
> +#if defined(CFG_FLASH_CFI_SWAP)
> 
> Why use CFG_FLASH_CFI_SWAP instead of __LITTLE_ENDIAN.  It seems that
they are
> equivalent.
> 
> Best Regards,
> Leo
> > -----Original Message-----
> > From: u-boot-users-bounces at lists.sourceforge.net
> > [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of
Yuli Barcohen
> > Sent: Tuesday, August 08, 2006 7:00 PM
> > To: u-boot-users at lists.sourceforge.net
> > Cc: Sam Song; Wolfgang Denk
> > Subject: Re: [U-Boot-Users] [RFC] CFI Driver Little-Endian write
Issue
> >
> > >>>>> Sam Song writes:
> >
> >     Zang> Where is the patch?  I do not object.  Our final goal is
to
> >     Zang> enable the general flash driver work on the board.
> >
> >     Sam> Sorry, I misused the word patch:-). The "patch" is Yuli's
> >     Sam> cfi_flash.c in his attached file. See your mail archive. It
> >     Sam> would be there. I tested that it was OK but still need your
> >     Sam> confirmation, I am afraid.
> >
> > OK, the patch is attached. As we know, it works on big-endian
systems.
> > On little-endian ones, it should change nothing.
> >
> > --
> >
========================================================================
> >  Yuli Barcohen       | Phone +972-9-765-1788 |  Software Project
Leader
> >  yuli at arabellasw.com | Fax   +972-9-765-7494 | Arabella Software,
Israel
> >
========================================================================

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2006-08-10 15:09 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-04 12:32 [U-Boot-Users] [RFC] CFI Driver Little-Endian write Issue Sam Song
2006-08-04 13:44 ` Wolfgang Denk
2006-08-07 10:34   ` Sam Song
2006-08-07 11:04   ` Yuli Barcohen
2006-08-07 11:43     ` Stefan Roese
2006-08-08  1:59     ` Sam Song
2006-08-08  2:15       ` Zang Roy-r61911
2006-08-08  4:54         ` Sam Song
2006-08-08  5:18           ` Zang Roy-r61911
2006-08-08 10:52             ` Sam Song
2006-08-08 11:00               ` Yuli Barcohen
2006-08-08 11:10                 ` Li Yang-r58472
2006-08-08 11:25                   ` Yuli Barcohen
2006-08-08 11:42                     ` Li Yang-r58472
2006-08-09  6:22                       ` Zang Roy-r61911
2006-08-08 13:10                     ` Sam Song
2006-08-08 13:31                       ` Yuli Barcohen
2006-08-08 14:44                         ` Sam Song
2006-08-09  6:14                 ` Zang Roy-r61911
2006-08-10 15:09                   ` Sam Song
2006-08-09  1:32               ` Zang Roy-r61911
2006-08-07  7:24 ` Zang Roy-r61911
2006-08-08  2:12   ` Sam Song
2006-08-08  2:30     ` Zang Roy-r61911
2006-08-08  4:59       ` Sam Song
2006-08-08  5:13         ` Zang Roy-r61911
2006-08-08 11:00           ` Sam Song
  -- strict thread matches above, loose matches on Subject: below --
2006-08-08 11:21 Li Yang-r58472
2006-08-08 13:47 ` Yuli Barcohen
2006-08-08 19:51   ` Tolunay Orkun
2006-08-09 11:59     ` Yuli Barcohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox