mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-04-04 06:46:11 +00:00
Currently, when booting with more that one CPU enabled, U-Boot scans 'cpu' node in device tree and calculates CPU number. This does not scale well as changing CPU number also requires modifying .dts and re-compiling U-Boot. This patch uses fw_cfg interface provided by QEMU to detect online CPU number at runtime, and dynamically adds 'cpu' device to U-Boot's driver model. Signed-off-by: Miao Yan <yanmiaobest@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> |
||
---|---|---|
.. | ||
acpi | ||
acpi.c | ||
car.S | ||
cpu.c | ||
dram.c | ||
dsdt.asl | ||
fw_cfg.c | ||
Kconfig | ||
Makefile | ||
qemu.c |