X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ffdt_support.h;h=2eff311fa4f577e8099a51ac82d8003b01e4eebb;hb=6864fc8704661878294d1f0f981f47e864ef470f;hp=ba14acd7f622b75de4cb4dadce6540e993c36d38;hpb=ad647690b1346f57847d4c9251293293af8928a8;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/fdt_support.h b/include/fdt_support.h index ba14acd..2eff311 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -343,6 +343,15 @@ int fdt_get_cells_len(const void *blob, char *nr_cells_name); #ifdef USE_HOSTCC int fdtdec_get_int(const void *blob, int node, const char *prop_name, int default_val); + +/* + * Count child nodes of one parent node. + * + * @param blob FDT blob + * @param node parent node + * @return number of child node; 0 if there is not child node + */ +int fdtdec_get_child_count(const void *blob, int node); #endif #ifdef CONFIG_FMAN_ENET int fdt_update_ethernet_dt(void *blob);