]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
adc: exynos-adc: Fix wrong bit operation used to stop the ADC
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 6 Mar 2019 18:37:49 +0000 (19:37 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 11 Mar 2019 06:53:19 +0000 (15:53 +0900)
When stopping the ADC_V2_CON1_STC_EN should be cleared.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/adc/exynos-adc.c

index d33e3d632afca06c68e109c259877c73b6a80e8b..12c49fc8cefbaa3f5e5bdf236e69ec220a3dd3cb 100644 (file)
@@ -62,7 +62,7 @@ int exynos_adc_stop(struct udevice *dev)
 
        /* Stop conversion */
        cfg = readl(&regs->con1);
-       cfg |= ~ADC_V2_CON1_STC_EN;
+       cfg &= ~ADC_V2_CON1_STC_EN;
 
        writel(cfg, &regs->con1);