diff options
Diffstat (limited to 'chip/lm4/adc.c')
-rw-r--r-- | chip/lm4/adc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/lm4/adc.c b/chip/lm4/adc.c index 1456ba996b..17f3d26191 100644 --- a/chip/lm4/adc.c +++ b/chip/lm4/adc.c @@ -203,9 +203,9 @@ static void adc_init(void) */ clock_enable_pll(1, 0); - /* Enable ADC0 module in run and sleep modes. */ - clock_enable_peripheral(CGC_OFFSET_ADC, 0x1, - CGC_MODE_RUN | CGC_MODE_SLEEP); + /* Enable ADC0 module and delay a few clocks. */ + LM4_SYSTEM_RCGCADC = 1; + clock_wait_cycles(3); /* * Use external voltage references (VREFA+, VREFA-) instead of |