zephyr/soc/arm/nuvoton_npcx
Mulin Chao 8a4013b2e1 drivers: adc: Set correct interrupt type and remove spurious interrupts
In npcx adc driver, we select 'Scan' (Multiple Channels Operation Mode)
mode by default. It means that selected channels in ADCCS will be
converted automatically. Then, read the measured data from CHNDAT
registers if EOCCEV (Event is set after all selected channels are
converted.) flag in ADCSTS is set.

But we enable the wrong interrupt type, INTECEN, during adc
initialization. Ec will send the interrupt after each channel in ADCCS
is converted. It has no harm to the current driver since the driver
reads all selected channels and turns off ADC converter only after
EOCCEV is set in ISR. But it does generate spurious interrupts.

This CL enables the correct interrupt type, INTECCEN, during adc
initialization. Ec only sends the interrupt after all of channels in
ADCCS are converted.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2022-03-24 10:43:54 +01:00
..
common drivers: adc: Set correct interrupt type and remove spurious interrupts 2022-03-24 10:43:54 +01:00
npcx7 soc: arm: nuvoton_npcx: remove SOC_POWER_MANAGEMENT 2022-03-04 09:05:45 -06:00
npcx9 soc: arm: nuvoton_npcx: remove SOC_POWER_MANAGEMENT 2022-03-04 09:05:45 -06:00
CMakeLists.txt
Kconfig kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.defconfig
Kconfig.soc