qemu/include/hw/arm
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
..
allwinner-a10.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
allwinner-h3.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
armsse.h Use OBJECT_DECLARE_TYPE where possible 2020-09-09 09:27:11 -04:00
armv7m.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
aspeed_soc.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
aspeed.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
bcm2835_peripherals.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
bcm2836.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
boot.h hw/arm/boot: Set NSACR.{CP11, CP10} in dummy SMC setup routine 2019-11-11 13:44:16 +00:00
digic.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
exynos4210.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
fdt.h hw/arm/sysbus-fdt: enable vfio-calxeda-xgmac dynamic instantiation 2015-06-19 14:17:44 +01:00
fsl-imx6.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
fsl-imx6ul.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
fsl-imx7.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
fsl-imx25.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
fsl-imx31.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
linux-boot-if.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
msf2-soc.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
npcm7xx.h hw/arm/npcm7xx: add board setup stub for CPU and UART clocks 2020-09-14 14:24:59 +01:00
nrf51_soc.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
nrf51.h hw/arm/nrf51: Add NRF51_PERIPHERAL_SIZE definition 2020-05-11 11:05:11 +01:00
omap.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
primecell.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pxa.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
raspi_platform.h hw/arm/bcm2835_peripherals: Use the thermal sensor block 2019-10-25 13:09:27 +01:00
sharpsl.h hw/gpio/zaurus.c: Use LOG_GUEST_ERROR for bad guest register accesses 2020-07-03 16:59:45 +01:00
smmu-common.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
smmuv3.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
soc_dma.h Include exec/memory.h slightly less 2019-08-16 13:31:52 +02:00
stm32f205_soc.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
stm32f405_soc.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
sysbus-fdt.h arm/boot: split load_dtb() from arm_load_kernel() 2018-05-10 18:10:56 +01:00
virt.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
xlnx-versal.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
xlnx-zynqmp.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00