diff options
author | Rob Herring <robh@kernel.org> | 2024-03-11 21:13:03 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2024-03-12 18:23:26 +0300 |
commit | 54c180e73ffa3e17a8289fa531279eeb2034b69f (patch) | |
tree | 0744e910c1b1d810724f5d96a8c6e3fe67da829f /drivers/of/of_private.h | |
parent | 893ecc6d2d61381bc56991178cb3de697a948b78 (diff) | |
download | linux-54c180e73ffa3e17a8289fa531279eeb2034b69f.tar.xz |
of: Move all FDT reserved-memory handling into of_reserved_mem.c
The split of /reserved-memory handling between fdt.c and
of_reserved_mem.c makes for reading and restructuring the code
difficult. As of_reserved_mem.c is only built for
CONFIG_OF_EARLY_FLATTREE already, move all the code to one spot.
Acked-by: Saravana Kannan <saravanak@google.com>
Reviewed-by: Oreoluwa Babatunde <quic_obabatun@quicinc.com>
Link: https://lore.kernel.org/r/20240311181303.1516514-2-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/of_private.h')
-rw-r--r-- | drivers/of/of_private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h index f38397c7b582..485483524b7f 100644 --- a/drivers/of/of_private.h +++ b/drivers/of/of_private.h @@ -175,8 +175,9 @@ static inline struct device_node *__of_get_dma_parent(const struct device_node * } #endif +int fdt_scan_reserved_mem(void); void fdt_init_reserved_mem(void); -void fdt_reserved_mem_save_node(unsigned long node, const char *uname, - phys_addr_t base, phys_addr_t size); + +bool of_fdt_device_is_available(const void *blob, unsigned long node); #endif /* _LINUX_OF_PRIVATE_H */ |