1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 /*
3 * libfdt - Flat Device Tree manipulation
4 * Testcase for fdt_getprop()
5 * Copyright (C) 2006 David Gibson, IBM Corporation.
6 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
7 */
8
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <string.h>
12 #include <stdint.h>
13
14 #include <libfdt.h>
15
16 #include "tests.h"
17
main(int argc,char * argv[])18 int main(int argc, char *argv[])
19 {
20 void *fdt;
21
22 test_init(argc, argv);
23 fdt = load_blob_arg(argc, argv);
24
25 check_getprop_cell(fdt, 0, "#address-cells", 1);
26 check_getprop_cell(fdt, 0, "#gpio-cells", 2);
27
28 PASS();
29 }
30