Re: [PATCH 1/4] device_tree: add qemu_fdt_setprop_reg64_map helper

2022-06-20 Thread Alistair Francis
On Sun, Jun 19, 2022 at 6:15 AM Ben Dooks wrote: > > Add a macro qemu_fdt_setprop_reg64_map() to set the given > node's reg property directly from the memory map entry > to avoid open coding of the following: > > qemu_fdt_setprop_cells(fdt, nodename, "reg", > 0x0,

[PATCH 1/4] device_tree: add qemu_fdt_setprop_reg64_map helper

2022-06-18 Thread Ben Dooks
Add a macro qemu_fdt_setprop_reg64_map() to set the given node's reg property directly from the memory map entry to avoid open coding of the following: qemu_fdt_setprop_cells(fdt, nodename, "reg", 0x0, memmap[SIFIVE_U_DEV_OTP].base, 0x0, memmap[SIFIVE_U_DEV_OTP].size);