]> git.sur5r.net Git - u-boot/blobdiff - include/fdt_support.h
ddr: altera: Drop custom dram_bank_mmu_setup() on Arria10
[u-boot] / include / fdt_support.h
index e6c43ea98380ef13c2296dd42e84aa111bbb9c0f..a9a0078af6635cc1969d389f0262d67a44474290 100644 (file)
@@ -283,6 +283,16 @@ int fdt_setup_simplefb_node(void *fdt, int node, u64 base_address, u32 width,
 
 int fdt_overlay_apply_verbose(void *fdt, void *fdto);
 
+/**
+ * fdt_get_cells_len() - Get the length of a type of cell in top-level nodes
+ *
+ * Returns the length of the cell type in bytes (4 or 8).
+ *
+ * @blob: Pointer to device tree blob
+ * @nr_cells_name: Name to lookup, e.g. "#address-cells"
+ */
+int fdt_get_cells_len(const void *blob, char *nr_cells_name);
+
 #endif /* ifdef CONFIG_OF_LIBFDT */
 
 #ifdef USE_HOSTCC