[U-Boot] RFC: porting u-boot to sequoia based nand booting board

Scott Wood scottwood at freescale.com
Tue May 17 19:05:23 CEST 2011


On Tue, 17 May 2011 10:11:14 -0400
Alex Waterman <awaterman at dawning.com> wrote:

> I have seen issues with the nand_read_byte16() function in nand_base.c; it seems like the cpu_to_le16() should be the other way around: le16_to_cpu(). Other than that no bugs as far as I am aware.

What is the specific problem you're seeing?  The use of these endian macros
is a bit abusive and ugly (what's really wanted is native-endian I/O
accessors -- readw() has an implicit le16_to_cpu()), and should have been
done internally to the read_word() implementation rather than made part of
the API, but functionally it should be correct.

-Scott



More information about the U-Boot mailing list