mbox series

[U-Boot,v2,0/2] regmap: add regmap_update_bits and sandbox R/W test

Message ID 1524822975-22120-1-git-send-email-narmstrong@baylibre.com
Headers show
Series regmap: add regmap_update_bits and sandbox R/W test | expand

Message

Neil Armstrong April 27, 2018, 9:56 a.m. UTC
This patchset adds the regmap_update_bits() to easy read/modify/write
like the Linux ragmap API.

The second patch adds a read/update_bits/write test to call these functions
but we cannot check the behaviour since io read/write is not implemented
on the sandbox arch.

Changes since v1:
 - moved from include to regmap.c
 - added a sandbox test

Neil Armstrong (2):
  regmap: add regmap_update_bits() helper
  test: regmap: add read/modify/write test

 drivers/core/regmap.c | 14 ++++++++++++++
 include/regmap.h      | 10 ++++++++++
 test/dm/regmap.c      | 24 ++++++++++++++++++++++++
 3 files changed, 48 insertions(+)