
Dear Stefano Babic,
In message 4B62C655.3090707@denx.de you wrote:
I will add something like CONFIG_FSL_ESDHC_BIG_ENDIAN or CONFIG_FSL_ESDHC_LITTLE_ENDIAN in the driver I changed. In the related header file for the driver, I can set driver specific macros that point to the correct accessors, depending on the new CONFIG_ switch. Then it should be clear which is the endianess used and it will be not related to the processor architecture. What do you think about this ?
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?
Best regards,
Wolfgang Denk