diff options
author | Miao Yan <yanmiaobest@gmail.com> | 2016-01-07 01:32:01 -0800 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-01-13 12:20:15 +0800 |
commit | 5a694056febfd5ee20677475cd4968c8e728c19c (patch) | |
tree | 6c1fc8aa599e4449746441941d3bf3fb4240aa0c /arch/x86/dts/qemu-x86_i440fx.dts | |
parent | f60df20aa966c3de850afafe3cce70a51d0b261c (diff) | |
download | u-boot-imx-5a694056febfd5ee20677475cd4968c8e728c19c.zip u-boot-imx-5a694056febfd5ee20677475cd4968c8e728c19c.tar.gz u-boot-imx-5a694056febfd5ee20677475cd4968c8e728c19c.tar.bz2 |
x86: qemu: add a cpu uclass driver for qemu target
Add a cpu uclass driver for qemu. Previously, the qemu target gets cpu
number from board dts files, which are manually created at compile time.
This does not scale when more cpus are assigned to guest as the dts files
must be modified as well.
This patch adds a cpu uclass driver for qemu targets to directly read
online cpu number from firmware.
Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/dts/qemu-x86_i440fx.dts')
-rw-r--r-- | arch/x86/dts/qemu-x86_i440fx.dts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/dts/qemu-x86_i440fx.dts b/arch/x86/dts/qemu-x86_i440fx.dts index 8a06229..4332204 100644 --- a/arch/x86/dts/qemu-x86_i440fx.dts +++ b/arch/x86/dts/qemu-x86_i440fx.dts @@ -32,14 +32,14 @@ cpu@0 { device_type = "cpu"; - compatible = "cpu-x86"; + compatible = "cpu-qemu"; reg = <0>; intel,apic-id = <0>; }; cpu@1 { device_type = "cpu"; - compatible = "cpu-x86"; + compatible = "cpu-qemu"; reg = <1>; intel,apic-id = <1>; }; |