summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2019-12-11 07:43:08 +0300
committerDongjin Kim <tobetter@gmail.com>2020-03-28 11:28:36 +0300
commit48f752451da269c11fac7a5ccf9b5a87136bf12c (patch)
tree052da5c6ea7b2695e1b73520085c7da3a990d555
parent0b0c6af38738f2c132cfd41a240889acaa031c8f (diff)
downloadu-boot-48f752451da269c11fac7a5ccf9b5a87136bf12c.tar.xz
ODROID-XU4: fix up reading board revision by ADC
Change-Id: I07f68576ad64640871467382d34de7e6b96541ec Signed-off-by: Dongjin Kim <tobetter@gmail.com>
-rw-r--r--board/samsung/common/exynos5-dt-types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samsung/common/exynos5-dt-types.c b/board/samsung/common/exynos5-dt-types.c
index 516c32923e..84999aeafe 100644
--- a/board/samsung/common/exynos5-dt-types.c
+++ b/board/samsung/common/exynos5-dt-types.c
@@ -67,7 +67,7 @@ static int odroid_get_adc_val(unsigned int *adcval)
unsigned int adcval_prev = 0;
int ret, retries = 20;
- ret = adc_channel_single_shot("adc", CONFIG_ODROID_REV_AIN,
+ ret = adc_channel_single_shot("adc@12D10000", CONFIG_ODROID_REV_AIN,
&adcval_prev);
if (ret)
return ret;
@@ -75,7 +75,7 @@ static int odroid_get_adc_val(unsigned int *adcval)
while (retries--) {
mdelay(5);
- ret = adc_channel_single_shot("adc", CONFIG_ODROID_REV_AIN,
+ ret = adc_channel_single_shot("adc@12D10000", CONFIG_ODROID_REV_AIN,
adcval);
if (ret)
return ret;