mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
hw/adc: Add an ADC module for NPCM7XX
The ADC is part of NPCM7XX Module. Its behavior is controled by the ADC_CON register. It converts one of the eight analog inputs into a digital input and stores it in the ADC_DATA register when enabled. Users can alter input value by using qom-set QMP command. Reviewed-by: Havard Skinnemoen <hskinnemoen@google.com> Reviewed-by: Tyrone Ting <kfting@nuvoton.com> Signed-off-by: Hao Wu <wuhaotsh@google.com> Message-id: 20210108190945.949196-4-wuhaotsh@google.com [PMM: Added missing hw/adc/trace.h file] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
0be12dc76a
commit
77c05b0b74
11 changed files with 783 additions and 3 deletions
|
@ -134,7 +134,8 @@ qtests_sparc64 = \
|
|||
['prom-env-test', 'boot-serial-test']
|
||||
|
||||
qtests_npcm7xx = \
|
||||
['npcm7xx_gpio-test',
|
||||
['npcm7xx_adc-test',
|
||||
'npcm7xx_gpio-test',
|
||||
'npcm7xx_rng-test',
|
||||
'npcm7xx_timer-test',
|
||||
'npcm7xx_watchdog_timer-test']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue