diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2019-03-06 19:37:49 +0100 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2019-03-11 15:53:19 +0900 |
commit | 6e74c6af32057f8e9fb97b781807c55f834d2063 (patch) | |
tree | cd5d4d1d7bbc3ff4293402f24f69a8ad3ddd22f9 /drivers/adc | |
parent | e8e3f2d2d48f97b2c79b698eccedce8f4f880993 (diff) | |
download | u-boot-6e74c6af32057f8e9fb97b781807c55f834d2063.zip u-boot-6e74c6af32057f8e9fb97b781807c55f834d2063.tar.gz u-boot-6e74c6af32057f8e9fb97b781807c55f834d2063.tar.bz2 |
adc: exynos-adc: Fix wrong bit operation used to stop the ADC
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>
Diffstat (limited to 'drivers/adc')
-rw-r--r-- | drivers/adc/exynos-adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/adc/exynos-adc.c b/drivers/adc/exynos-adc.c index d33e3d6..12c49fc 100644 --- a/drivers/adc/exynos-adc.c +++ b/drivers/adc/exynos-adc.c @@ -62,7 +62,7 @@ int exynos_adc_stop(struct udevice *dev) /* Stop conversion */ cfg = readl(®s->con1); - cfg |= ~ADC_V2_CON1_STC_EN; + cfg &= ~ADC_V2_CON1_STC_EN; writel(cfg, ®s->con1); |