regmap: Allow devices to specify regmap range start and size in config
authorPratyush Yadav <p.yadav@ti.com>
Thu, 24 Sep 2020 04:34:15 +0000 (10:04 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 15:55:22 +0000 (11:55 -0400)
commitd8babb9598ce237ffb1feccb576c66a21c52e5f7
tree24983e341b4a5303ef72f3f533bd7e746a4f32b0
parent0e01a7c3f4b6a42f768a19f7fc1df92d3e3b5d37
regmap: Allow devices to specify regmap range start and size in config

Some devices need to calculate the regmap base address at runtime. This
makes it impossible to use device tree to get the regmap base. Instead,
allow devices to specify it in the regmap config. This will create a
regmap with a single range that corresponds to the start and size given
by the driver.

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