
24 Oct
2018
24 Oct
'18
7:35 p.m.
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.six@gdsys.cc Reviewed-by: Simon Glass sjg@chromium.org Reviewed-by: Daniel Schwierzeck daniel.schwierzeck@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!