[PATCH 2/8] of: export of_get_reserve_map

Rouven Czerwinski r.czerwinski at pengutronix.de
Tue Apr 20 08:56:55 BST 2021


This allows the retrieval of the reserve map for usage in other
functions, in this case one of the next commits will use this
information to modify the MMU map.

Signed-off-by: Rouven Czerwinski <r.czerwinski at pengutronix.de>
---
 include/of.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/of.h b/include/of.h
index 7c8640a1d6..088b088223 100644
--- a/include/of.h
+++ b/include/of.h
@@ -117,6 +117,7 @@ struct device_node *of_unflatten_dtb_const(const void *infdt);
 struct cdev;
 
 #ifdef CONFIG_OFTREE
+struct of_reserve_map *of_get_reserve_map(void);
 extern int of_bus_n_addr_cells(struct device_node *np);
 extern int of_n_addr_cells(struct device_node *np);
 extern int of_bus_n_size_cells(struct device_node *np);
@@ -774,6 +775,10 @@ static inline int of_autoenable_i2c_by_component(char *path)
 	return -ENODEV;
 }
 
+static inline struct of_reserve_map *of_get_reserve_map(void)
+{
+	return NULL;
+}
 
 #endif
 
-- 
2.31.1




More information about the barebox mailing list