diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2021-10-12 08:20:08 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2021-10-12 08:20:08 +0200 |
commit | 5857974d5d1133455e3c33e7c740786722418588 (patch) | |
tree | d469eb77773f693ae09722202c217c2cc82d88fc /hw/adc/meson.build | |
parent | 87bd33e8b0d2e08a6030ffced9433e5927360de5 (diff) | |
download | qemu-5857974d5d1133455e3c33e7c740786722418588.zip qemu-5857974d5d1133455e3c33e7c740786722418588.tar.gz qemu-5857974d5d1133455e3c33e7c740786722418588.tar.bz2 |
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>
Diffstat (limited to 'hw/adc/meson.build')
-rw-r--r-- | hw/adc/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/adc/meson.build b/hw/adc/meson.build index ac4f093..b29ac7c 100644 --- a/hw/adc/meson.build +++ b/hw/adc/meson.build @@ -1,4 +1,5 @@ softmmu_ss.add(when: 'CONFIG_STM32F2XX_ADC', if_true: files('stm32f2xx_adc.c')) +softmmu_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_adc.c')) softmmu_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_adc.c')) softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq-xadc.c')) softmmu_ss.add(when: 'CONFIG_MAX111X', if_true: files('max111x.c')) |