Skip to content
Snippets Groups Projects
Commit 77c05b0b authored by Hao Wu's avatar Hao Wu Committed by Peter Maydell
Browse files

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: default avatarHavard Skinnemoen <hskinnemoen@google.com>
Reviewed-by: default avatarTyrone Ting <kfting@nuvoton.com>
Signed-off-by: default avatarHao Wu <wuhaotsh@google.com>
Message-id: 20210108190945.949196-4-wuhaotsh@google.com
[PMM: Added missing hw/adc/trace.h file]
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 0be12dc7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment