[U-Boot-Users] [PATCH 4/6] cfi_flash: Introduce read and write accessors

Wolfgang Denk wd at denx.de
Tue Dec 11 17:25:22 CET 2007


In message <20071211164644.6430849a at dhcp-252-066.norway.atmel.com> you wrote:
> On Tue, 11 Dec 2007 09:35:21 -0600
> Kumar Gala <galak at kernel.crashing.org> wrote:
> 
> > should these not use in/out macros from asm/io.h?
> 
> That would probably be better. It's just that I'm having a hard time
> finding a set of macros that
>   a) is available on all architectures
>   b) don't do any byte swapping or other tricks
> 
> __raw_writeb() and friends would satisfy b) but not a)...

Then we eventually should implement these for the missing
architetures.

Kumar is right. We definitely must use the "real" accessor functions.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
365 Days of drinking Lo-Cal beer.                       = 1 Lite-year




More information about the U-Boot mailing list