1 // SPDX-License-Identifier: GPL-2.0+
3 #define LOG_CATEGORY LOGC_ARCH
5 #include <fdt_support.h>
9 int arch_fixup_fdt(void *blob)
13 ret = fdt_find_or_add_subnode(blob, 0, "chosen");;
16 ret = fdt_setprop_u32(blob, ret, "boot-hartid", 1);
21 log_err("Setting /chosen/boot-hartid failed: %s\n", fdt_strerror(ret));