]> git.proxmox.com Git - mirror_qemu.git/commit
hw/adc: Add basic Aspeed ADC model
authorAndrew Jeffery <andrew@aj.id.au>
Tue, 12 Oct 2021 06:20:08 +0000 (08:20 +0200)
committerCédric Le Goater <clg@kaod.org>
Tue, 12 Oct 2021 06:20:08 +0000 (08:20 +0200)
commit5857974d5d1133455e3c33e7c740786722418588
treed469eb77773f693ae09722202c217c2cc82d88fc
parent87bd33e8b0d2e08a6030ffced9433e5927360de5
hw/adc: Add basic Aspeed ADC model

This model implements enough behaviour to do basic functionality tests
such as device initialisation and read out of dummy sample values. The
sample value generation strategy is similar to the STM ADC already in
the tree.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
[clg : support for multiple engines (AST2600) ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
[pdel : refactored engine register struct fields to regs[] array field]
[pdel : added guest-error checking for upper-8 channel regs in AST2600]
[pdel : allow 16-bit reads of the channel data registers]
Signed-off-by: Peter Delevoryas <pdel@fb.com>
Message-Id: <20211005052604.1674891-2-pdel@fb.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/adc/aspeed_adc.c [new file with mode: 0644]
hw/adc/meson.build
hw/adc/trace-events
include/hw/adc/aspeed_adc.h [new file with mode: 0644]