qemu/include
Havard Skinnemoen 2ddae9cc04 hw/arm/npcm7xx: add board setup stub for CPU and UART clocks
When booting directly into a kernel, bypassing the boot loader, the CPU and
UART clocks are not set up correctly. This makes the system appear very
slow, and causes the initrd boot test to fail when optimization is off.

The UART clock must run at 24 MHz. The default 25 MHz reference clock
cannot achieve this, so switch to PLL2/2 @ 480 MHz, which works
perfectly with the default /20 divider.

The CPU clock should run at 800 MHz, so switch it to PLL1/2. PLL1 runs
at 800 MHz by default, so we need to double the feedback divider as well
to make it run at 1600 MHz (so PLL1/2 runs at 800 MHz).

We don't bother checking for PLL lock because we know our emulated PLLs
lock instantly.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Message-id: 20200911052101.2602693-13-hskinnemoen@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-09-14 14:24:59 +01:00
..
authz Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-09 09:27:11 -04:00
block QOM boilerplate cleanup 2020-09-11 19:26:51 +01:00
chardev Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
crypto Improve performance of crypto cipher subsystem 2020-09-12 21:17:22 +01:00
disas target/avr: Register AVR support with the rest of QEMU 2020-07-11 11:02:05 +02:00
exec Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
fpu softfloat: Define comparison operations for bfloat16 2020-08-29 19:25:42 -07:00
hw hw/arm/npcm7xx: add board setup stub for CPU and UART clocks 2020-09-14 14:24:59 +01:00
io Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-09 09:27:11 -04:00
libdecnumber include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
migration migration/colo: Use ram_block_discard_disable() 2020-07-02 05:54:59 -04:00
monitor hmp: Implement qom-get HMP command 2020-06-01 18:44:27 +01:00
net Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
qapi qapi/error: Check format string argument in error_*prepend() 2020-07-24 15:03:09 +02:00
qemu main-loop: Fix comment 2020-09-01 12:07:52 +02:00
qom Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
scsi Use OBJECT_DECLARE_TYPE where possible 2020-09-09 09:27:11 -04:00
standard-headers Linux headers: update 2020-06-18 12:13:36 +02:00
sysemu Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-09 09:27:11 -04:00
tcg tcg: Add tcg_get_insn_start_param 2020-09-01 07:43:30 -07:00
ui Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
user trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
elf.h Update PowerPC AT_HWCAP2 definition 2020-08-12 13:16:27 +10:00
glib-compat.h glib: bump min required glib library version to 2.48 2019-08-22 10:46:34 +01:00
qemu-common.h util/hexdump: Reorder qemu_hexdump() arguments 2020-09-11 21:25:59 +02:00
qemu-io.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
trace-tcg.h