Lines Matching +full:ns +full:- +full:firmware
1 // SPDX-License-Identifier: GPL-2.0-only
3 * The simple platform -- for booting when firmware doesn't supply a device
28 const u32 *na, *ns, *reg, *timebase; in platform_init() local
36 /* Find the #address-cells and #size-cells properties */ in platform_init()
40 na = fdt_getprop(_dtb_start, node, "#address-cells", &size); in platform_init()
42 fatal("Cannot find #address-cells property"); in platform_init()
43 ns = fdt_getprop(_dtb_start, node, "#size-cells", &size); in platform_init()
44 if (!ns || (size != 4)) in platform_init()
45 fatal("Cannot find #size-cells property"); in platform_init()
48 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init()
53 if (size < (*na+*ns) * sizeof(u32)) in platform_init()
63 for (i = 0; i < *ns; i++) in platform_init()
69 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init()
73 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); in platform_init()
78 simple_alloc_init(_end, memsize64 - (unsigned long)_end, 32, 64); in platform_init()