[U-Boot] [PATCH v11 12/16] regmap: Add endianness support

sjg at google.com sjg at google.com
Wed Oct 24 17:35:31 UTC 2018


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 at gdsys.cc>
Reviewed-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at 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!


More information about the U-Boot mailing list