summaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2018-10-15 09:24:12 +0200
committerSimon Glass <sjg@chromium.org>2018-11-14 09:16:27 -0800
commite936397ae98b3a67ba7deaef0cc8a56f36e66b58 (patch)
tree4a5818c2c580f2e1e29adb9a8ef7127d00d3060b /test/dm
parentd5c7bd985d759b7aade2700c11890821e6187e4b (diff)
regmap: Define regmap_{get,set}
It would be convenient if one could use the regmap API in conjunction with register maps defined as structs (i.e. structs that directly mirror the memory layout of the registers in question). A similar approach was planned with the regmap_write32/regmap_read32 macros, but was never used. Hence, implement regmap_set/regmap_range_set and regmap_get/regmap_range_get macros, which, given a register map, a struct describing the layout of the register map, and a member name automatically produce regmap_read/regmap_write calls that access the specified member in the register map. Reviewed-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'test/dm')
0 files changed, 0 insertions, 0 deletions