mbox series

[U-Boot,v2,0/4] regmap: Add a managed API, custom read/write callbacks and support for regmap fields

Message ID 20191105114700.24989-1-jjhiblot@ti.com
Headers show
Series regmap: Add a managed API, custom read/write callbacks and support for regmap fields | expand

Message

Jean-Jacques Hiblot Nov. 5, 2019, 11:46 a.m. UTC
This is the first of a few series, the goal of which is to facilitate
porting drivers from the linux kernel. Most of the series will be about
adding managed API to existing infrastructure (GPIO, reset, phy,...)

This particular series is about regmaps. It adds the managed API, using
the same API as linux. It also adds support for regmap fields and for
custom read/write callbacks.

Changes in v2:
- Fix comment for devm_regmap_init()
- Fix spelling in commit log
- Only use custom accessors if {,SPL,TPL}_REGMAP_ACCESSORS is enabled

Jean-Jacques Hiblot (4):
  regmap: Add devm_regmap_init()
  regmap: Allow providing read/write callbacks through struct
    regmap_config
  regmap: Add support for regmap fields
  test: dm: Add tests for regmap managed API and regmap fields

 arch/sandbox/dts/test.dts |  13 +++
 drivers/core/Kconfig      |  25 +++++
 drivers/core/regmap.c     | 123 ++++++++++++++++++++++++-
 include/regmap.h          | 148 +++++++++++++++++++++++++++++
 test/dm/regmap.c          | 189 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 497 insertions(+), 1 deletion(-)