x86: coreboot: Add default TSC frequency in the device tree
authorBin Meng <bmeng.cn@gmail.com>
Fri, 10 Aug 2018 09:39:37 +0000 (02:39 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Aug 2018 05:52:49 +0000 (13:52 +0800)
It was observed sometimes U-Boot as the coreboot payload fails to
boot on QEMU. This is because TSC calibration fails with no valid
frequency. This adds default TSC frequency in the device tree.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
arch/x86/dts/coreboot.dts

index a94f7818331c1f601073c47c3bd3cbf816f42575..e212f3dc7dbe12f19ef49ef99bc4d2565c8b8679 100644 (file)
                stdout-path = "/serial";
        };
 
+       tsc-timer {
+               clock-frequency = <1000000000>;
+       };
+
        pci {
                compatible = "pci-x86";
                u-boot,dm-pre-reloc;