summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorBin Meng2021-02-03 15:24:48 +0100
committerDavid Gibson2021-02-10 04:50:11 +0100
commit11dbcc70c6423162d8c6131db1e09944818b35b9 (patch)
tree21b6f8507fc6d3332fd567e2f2a147e927a9b167 /hw
parenthw/ppc: e500: Use a macro for the platform clock frequency (diff)
downloadqemu-11dbcc70c6423162d8c6131db1e09944818b35b9.tar.gz
qemu-11dbcc70c6423162d8c6131db1e09944818b35b9.tar.xz
qemu-11dbcc70c6423162d8c6131db1e09944818b35b9.zip
hw/ppc: e500: Fill in correct <clock-frequency> for the serial nodes
At present the <clock-frequency> property of the serial node is populated with value zero. U-Boot's ns16550 driver is not happy about this, so let's fill in a meaningful value. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <1612362288-22216-2-git-send-email-bmeng.cn@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/e500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index c795276668..01517a6c6c 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -126,7 +126,7 @@ static void dt_serial_create(void *fdt, unsigned long long offset,
qemu_fdt_setprop_string(fdt, ser, "compatible", "ns16550");
qemu_fdt_setprop_cells(fdt, ser, "reg", offset, 0x100);
qemu_fdt_setprop_cell(fdt, ser, "cell-index", idx);
- qemu_fdt_setprop_cell(fdt, ser, "clock-frequency", 0);
+ qemu_fdt_setprop_cell(fdt, ser, "clock-frequency", PLATFORM_CLK_FREQ_HZ);
qemu_fdt_setprop_cells(fdt, ser, "interrupts", 42, 2);
qemu_fdt_setprop_phandle(fdt, ser, "interrupt-parent", mpic);
qemu_fdt_setprop_string(fdt, "/aliases", alias, ser);