Re: [U-Boot] [PATCH 2/2] ep93xx: Refactoring of timer code

2010-02-23 Thread Tom
Matthias Kaehlcke wrote: > Hi Wolfgang, > > El Tue, Feb 23, 2010 at 11:23:42PM +0100 Wolfgang Denk ha dit: > >> In message <20100223220421.gk20...@darwin> you wrote: >>> ep93xx: Refactoring of the timer code, including the following changes >> ... >>> +#define TIMER_FREQ 508469 >>

Re: [U-Boot] [PATCH 2/2] ep93xx: Refactoring of timer code

2010-02-23 Thread Matthias Kaehlcke
Hi Wolfgang, El Tue, Feb 23, 2010 at 11:23:42PM +0100 Wolfgang Denk ha dit: > In message <20100223220421.gk20...@darwin> you wrote: > > ep93xx: Refactoring of the timer code, including the following changes > ... > > +#define TIMER_FREQ 508469 > > +#define CLK_TICKS_PER_SYS_TICK

Re: [U-Boot] [PATCH 2/2] ep93xx: Refactoring of timer code

2010-02-23 Thread Wolfgang Denk
Dear Matthias Kaehlcke, In message <20100223220421.gk20...@darwin> you wrote: > ep93xx: Refactoring of the timer code, including the following changes ... > +#define TIMER_FREQ 508469 > +#define CLK_TICKS_PER_SYS_TICK (TIMER_FREQ / CONFIG_SYS_HZ) ... > +

[U-Boot] [PATCH 2/2] ep93xx: Refactoring of timer code

2010-02-23 Thread Matthias Kaehlcke
ep93xx: Refactoring of the timer code, including the following changes * use a free running timer instead of a periodical one * use unsigned long long for total number of ticks * hold the timer state in a structure instead of separate variables * increment the timer counter instead of decremen