6cdf1e4c64
Also while here fix the delay loop used before timers are enabled to cause a delay, by using a volatile int to do a countdown. gcc has become intelligent enough to optimize an empty loop away. For delay on PXA270 we should use one of the other counters, and a 1Mhz clock, so that we don't have to computer the counter increment. XXX: also looks like there's a bug if the counter wraps, as delay doesn't look like it allows for that.