regmap: Add raw read/write functions
authorMario Six <mario.six@gdsys.cc>
Mon, 15 Oct 2018 07:24:10 +0000 (09:24 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commit84ff8f622d2e2aeb67c1cec1c2c814895648fca8
treefb70da06172352bae28ed26ecf5872e38d050d88
parent4d9ada54a269c4ded01d60f7c231fd1a3a436a25
regmap: Add raw read/write functions

The regmap functions currently assume that all register map accesses
have a data width of 32 bits, but there are maps that have different
widths.

To rectify this, implement the regmap_raw_read and regmap_raw_write
functions from the Linux kernel API that specify the width of a desired
read or write operation on a regmap.

Implement the regmap_read and regmap_write functions using these raw
functions in a backwards-compatible manner.

Reviewed-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/regmap.c
include/regmap.h