lib: utils/regmap: Add simple FDT based regmap framework

We add a simple FDT based regmap framework which is built on top of
generic regmap library. The phandle of FDT regmap DT node is treated
as unique regmap ID. The FDT based regmap drivers will be probed
on-demand from fdt_regmap_get_by_phandle() and fdt_regmap_get()
called by the regmap client drivers.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
This commit is contained in:
Anup Patel authored and Anup Patel committed 2023-07-31 14:09:10 +05:30
1 parent 14a35b0e0e
commit 8e97275d97
6 files changed
+138 -1

No files matched your search

+3
View File
@@ -7,4 +7,7 @@
# Anup Patel <apatel@ventanamicro.com>
#
libsbiutils-objs-$(CONFIG_FDT_REGMAP) += regmap/fdt_regmap.o
libsbiutils-objs-$(CONFIG_FDT_REGMAP) += regmap/fdt_regmap_drivers.o
libsbiutils-objs-$(CONFIG_REGMAP) += regmap/regmap.o