
Scott Wood wrote:
How about adding additional I/O accessors that do native endian accesses instead of specified endian?
Hi Scott,
I confess I have thought to add this kind of abstraction, too. However, this is probably overkilling for the purpose of this patch.
I think if we need another general way to manage endianess, it should be better done in another patch. Scope of this patch is only to provide common ways to access peripherals from SoCs sharing the same controllers, but with different CPUs.
I do not know (at least, I have not founded), if there is already in u-boot a driver shared between architectures with different endianess, but as sure the Freescale's MX and PowerQuick processors have some common parts and we should try to reuse code as Freescale reused gates. Or at least, try to do it....
Best regards, Stefano Babic