]> git.proxmox.com Git - mirror_qemu.git/commit
hw/misc: Add NPCM7xx Clock Controller device model
authorHavard Skinnemoen <hskinnemoen@google.com>
Fri, 11 Sep 2020 05:20:49 +0000 (22:20 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Sep 2020 13:24:58 +0000 (14:24 +0100)
commite331f79eb8226d57e73c522b31a21e2a63e96f44
treef7031d492a7731771b094aa799045d05391b2217
parente5a7ba8788056d0fb10b9ff587677ba78ca41ce9
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>
hw/misc/meson.build
hw/misc/npcm7xx_clk.c [new file with mode: 0644]
hw/misc/trace-events
include/hw/misc/npcm7xx_clk.h [new file with mode: 0644]