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

Scott Wood scottwood at freescale.com
Thu Feb 4 17:57:16 CET 2010


Stefano Babic 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.

How about adding additional I/O accessors that do native endian accesses instead 
of specified endian?

-Scott


More information about the U-Boot mailing list