summaryrefslogtreecommitdiff
path: root/include/regmap.h
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2019-06-10 22:13:33 +0300
committerTom Rini <trini@konsulko.com>2019-07-17 18:12:08 +0300
commit55a1a09b2acfc08bb55cb01820b00ef443f23481 (patch)
tree4337d165fd7ee3a516025ce8964d68bf3ffd6c5c /include/regmap.h
parent6fca7fb3a008297408489ffb696e3b360d8f343b (diff)
downloadu-boot-55a1a09b2acfc08bb55cb01820b00ef443f23481.tar.xz
regmap: Add API regmap_init_mem_index()
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/regmap.h')
-rw-r--r--include/regmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/regmap.h b/include/regmap.h
index 3cd7a66cea..0854200a9c 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -330,6 +330,8 @@ int regmap_init_mem(ofnode node, struct regmap **mapp);
int regmap_init_mem_platdata(struct udevice *dev, fdt_val_t *reg, int count,
struct regmap **mapp);
+int regmap_init_mem_index(ofnode node, struct regmap **mapp, int index);
+
/**
* regmap_get_range() - Obtain the base memory address of a regmap range
*