Similar to r255816, fix the math for the DELAY() calculation. It was off

by a really small amount because of the higher timer resolution.

Approved by:	adrian (mentor)
Verified on:	BBB
This commit is contained in:
Luiz Otavio O Souza 2013-12-08 13:46:27 +00:00
parent 6cec74b2e4
commit 87bd9889d1

View File

@ -359,7 +359,7 @@ DELAY(int usec)
}
/* Get the number of times to count */
counts = usec * ((am335x_dmtimer_tc.tc_frequency / 1000000) + 1);
counts = usec * (am335x_dmtimer_tc.tc_frequency / 1000000) + 1;
first = am335x_dmtimer_tc_read_4(DMTIMER_TCRR);