summary refs log tree commit diff stats
path: root/hw/timer/npcm7xx_timer.c
diff options
context:
space:
mode:
authorHavard Skinnemoen <hskinnemoen@google.com>2020-09-10 22:20:49 -0700
committerPeter Maydell <peter.maydell@linaro.org>2020-09-14 14:24:58 +0100
commite331f79eb8226d57e73c522b31a21e2a63e96f44 (patch)
treef7031d492a7731771b094aa799045d05391b2217 /hw/timer/npcm7xx_timer.c
parente5a7ba8788056d0fb10b9ff587677ba78ca41ce9 (diff)
downloadfocaccia-qemu-e331f79eb8226d57e73c522b31a21e2a63e96f44.tar.gz
focaccia-qemu-e331f79eb8226d57e73c522b31a21e2a63e96f44.zip
hw/misc: Add NPCM7xx Clock Controller device model
Enough functionality to boot the Linux kernel has been implemented. This
includes:

  - Correct power-on reset values so the various clock rates can be
    accurately calculated.
  - Clock enables stick around when written.

In addition, a best effort attempt to implement SECCNT and CNTR25M was
made even though I don't think the kernel needs them.

Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Message-id: 20200911052101.2602693-3-hskinnemoen@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/timer/npcm7xx_timer.c')
0 files changed, 0 insertions, 0 deletions