OSDN Git Service

hw/adc: Fix CONV bit in NPCM7XX ADC CON register
authorHao Wu <wuhaotsh@google.com>
Thu, 14 Jul 2022 18:28:31 +0000 (11:28 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 18 Jul 2022 12:20:14 +0000 (13:20 +0100)
commit4a84e85413acaad9e84b64786e44e190080d78a6
treeb00ee7a758880526461d79c168a121a89b036fd0
parentf04383e74926180cc56809ec8319115e4cea32b7
hw/adc: Fix CONV bit in NPCM7XX ADC CON register

The correct bit for the CONV bit in NPCM7XX ADC is bit 13. This patch
fixes that in the module, and also lower the IRQ when the guest
is done handling an interrupt event from the ADC module.

Signed-off-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Patrick Venture<venture@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220714182836.89602-4-wuhaotsh@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/adc/npcm7xx_adc.c
tests/qtest/npcm7xx_adc-test.c