projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e3f2d
)
adc: exynos-adc: Fix wrong bit operation used to stop the ADC
author
Krzysztof Kozlowski
<krzk@kernel.org>
Wed, 6 Mar 2019 18:37:49 +0000
(19:37 +0100)
committer
Minkyu 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
patch
|
blob
|
history
diff --git
a/drivers/adc/exynos-adc.c
b/drivers/adc/exynos-adc.c
index d33e3d632afca06c68e109c259877c73b6a80e8b..12c49fc8cefbaa3f5e5bdf236e69ec220a3dd3cb 100644
(file)
--- 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);