diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2018-01-23 19:14:55 +0300 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-01-24 09:33:43 +0300 |
commit | 48263504c8d501678acaa90c075f3f7cda17c316 (patch) | |
tree | 3236bf8890e2258f1f9af5e42ab42aac6768bb3b /board/samtec | |
parent | 91fe458bbfcd6485b9413cf398bbfeb6947861ec (diff) | |
download | u-boot-48263504c8d501678acaa90c075f3f7cda17c316.tar.xz |
wait_bit: use wait_for_bit_le32 and remove wait_for_bit
wait_for_bit callers use the 32 bit LE version
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'board/samtec')
-rw-r--r-- | board/samtec/vining_2000/vining_2000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samtec/vining_2000/vining_2000.c b/board/samtec/vining_2000/vining_2000.c index af1a3e75cb..cced08b8b8 100644 --- a/board/samtec/vining_2000/vining_2000.c +++ b/board/samtec/vining_2000/vining_2000.c @@ -378,7 +378,7 @@ static int read_adc(u32 *val) /* start auto calibration */ setbits_le32(b + ADCx_GC, ADCx_GC_CAL); - ret = wait_for_bit("ADC", b + ADCx_GC, ADCx_GC_CAL, ADCx_GC_CAL, 10, 0); + ret = wait_for_bit_le32(b + ADCx_GC, ADCx_GC_CAL, ADCx_GC_CAL, 10, 0); if (ret) goto adc_exit; @@ -386,7 +386,7 @@ static int read_adc(u32 *val) writel(0, b + ADCx_HC0); /* wait for conversion */ - ret = wait_for_bit("ADC", b + ADCx_HS, ADCx_HS_C0, ADCx_HS_C0, 10, 0); + ret = wait_for_bit_le32(b + ADCx_HS, ADCx_HS_C0, ADCx_HS_C0, 10, 0); if (ret) goto adc_exit; |