]> git.ipfire.org Git - thirdparty/u-boot.git/commit
regmap: Add regmap_init_mem_range()
authorPratyush Yadav <p.yadav@ti.com>
Thu, 24 Sep 2020 04:34:14 +0000 (10:04 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 15:55:22 +0000 (11:55 -0400)
commit0e01a7c3f4b6a42f768a19f7fc1df92d3e3b5d37
tree1b7a060901775e87954bfcc9c3dff11b4de041c3
parent7aa5ddffe7fbafe7ef828088ba1dbc76270300c5
regmap: Add regmap_init_mem_range()

Right now, the base of a regmap can only be obtained from the device
tree. This makes it impossible for devices which calculate the base at
runtime to use a regmap. An example of such a device is the Cadence
Sierra PHY.

Allow creating a regmap with one range whose start and size can be
specified by the driver based on calculations at runtime.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/regmap.c
include/regmap.h