The system bus frequency has been available from the QEMU fw_cfg interface for some time, so let's use it rather than hard-coding the relevant values.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- arch/ppc/qemu/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c index 5ce080c..8524750 100644 --- a/arch/ppc/qemu/init.c +++ b/arch/ppc/qemu/init.c @@ -835,7 +835,7 @@ arch_of_init(void) push_str("AAPL,cpu-id"); fword("property");
- PUSH(66 * 1000 * 1000); + PUSH(fw_cfg_read_i32(FW_CFG_PPC_BUSFREQ)); fword("encode-int"); push_str("clock-frequency"); fword("property"); @@ -872,7 +872,7 @@ arch_of_init(void) push_str("bootrom"); fword("device-type");
- PUSH(100 * 1000 * 1000); + PUSH(fw_cfg_read_i32(FW_CFG_PPC_BUSFREQ)); fword("encode-int"); push_str("clock-frequency"); fword("property");