[U-Boot] [PATCH V4 09/11] ARM/PPC: add a common way to access registers

Wolfgang Denk wd at denx.de
Thu Feb 4 11:34:39 CET 2010


Dear Stefano Babic,

In message <4B6A96B3.4060803 at denx.de> you wrote:
> Wolfgang Denk wrote:
> 
> > I like this approach better than the precious one.
> > 
> > However, I had hoped that we could do without such manual configu-
> > ration like CONFIG_FSL_ESDHC_*_ENDIAN. I mean, we already know the
> > target byte order, and you know in which byte order you want to
> > access the data, or is this board dependent?
> 
> It should be enough to include asm/byteorder.h. Based on __BYTE_ORDER, I
> can select the correct accessors in the driver.

Excellent. Then let's do it this way.

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
A Perl script is correct if it's halfway readable and  gets  the  job
done before your boss fires you.
                       - L. Wall & R. L. Schwartz, _Programming Perl_


More information about the U-Boot mailing list