qemu/include/hw/timer
Havard Skinnemoen 85fdd74ff0 hw/timer: Add NPCM7xx Timer device model
The NPCM730 and NPCM750 SoCs have three timer modules each holding five
timers and some shared registers (e.g. interrupt status).

Each timer runs at 25 MHz divided by a prescaler, and counts down from a
configurable initial value to zero. When zero is reached, the interrupt
flag for the timer is set, and the timer is disabled (one-shot mode) or
reloaded from its initial value (periodic mode).

This implementation is sufficient to boot a Linux kernel configured for
NPCM750. Note that the kernel does not seem to actually turn on the
interrupts.

Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Alexander Bulekov <alxndr@bu.edu>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Message-id: 20200911052101.2602693-4-hskinnemoen@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-09-14 14:24:58 +01:00
..
a9gtimer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
allwinner-a10-pit.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
arm_mptimer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
armv7m_systick.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
aspeed_timer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
avr_timer16.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
bcm2835_systmr.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
cmsdk-apb-dualtimer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
cmsdk-apb-timer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
digic-timer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
hpet.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
i8254_internal.h i8254: Move PITCommonState/PITCommonClass typedefs to i8254.h 2020-08-27 14:04:54 -04:00
i8254.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
imx_epit.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
imx_gpt.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
mips_gictimer.h hw/mips_gictimer: provide API for retrieving frequency 2017-02-21 22:24:58 +00:00
mss-timer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
npcm7xx_timer.h hw/timer: Add NPCM7xx Timer device model 2020-09-14 14:24:58 +01:00
nrf51_timer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
renesas_cmt.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
renesas_tmr.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
stm32f2xx_timer.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
tmu012.h hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' 2020-06-22 18:37:12 +02:00