Add support for switching the endianness of regmap accesses via the "little-endian", "big-endian", and "native-endian" boolean properties in the device tree.
The default endianness is native endianness. Signed-off-by: Mario Six <mario....@gdsys.cc> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Daniel Schwierzeck <daniel.schwierz...@gmail.com> --- v10 -> v11: * Added more #ifdef tests for 64-bit case to resolve compilation issues v9 -> v10: * Switched to readb/writeb for 8-bit reads/writes v8 -> v9: New in v9 --- drivers/core/regmap.c | 134 ++++++++++++++++++++++++++++++++++++++---- include/regmap.h | 14 +++++ 2 files changed, 138 insertions(+), 10 deletions(-) Applied to u-boot-dm/next, thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot