]>
git.ipfire.org Git - people/ms/u-boot.git/blob - lib/fdtdec_common.c
3 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
5 * Based on lib/fdtdec.c:
6 * Copyright (c) 2011 The Chromium OS Authors.
8 * SPDX-License-Identifier: GPL-2.0+
17 #include "fdt_support.h"
22 int fdtdec_get_int(const void *blob
, int node
, const char *prop_name
,
28 debug("%s: %s: ", __func__
, prop_name
);
29 cell
= fdt_getprop(blob
, node
, prop_name
, &len
);
30 if (cell
&& len
>= sizeof(int)) {
31 int val
= fdt32_to_cpu(cell
[0]);
33 debug("%#x (%d)\n", val
, val
);
36 debug("(not found)\n");