x86: efi: payload: Add default TSC frequency in the device tree
authorBin Meng <bmeng.cn@gmail.com>
Fri, 10 Aug 2018 09:39:38 +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 EFI 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: Simon Glass <sjg@chromium.org>
arch/x86/dts/efi-x86_payload.dts

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