~ubuntu-branches/ubuntu/saucy/u-boot/saucy

« back to all changes in this revision

Viewing changes to arch/arm/cpu/arm926ejs/pantheon/timer.c

  • Committer: Package Import Robot
  • Author(s): Clint Adams
  • Date: 2012-05-01 18:07:19 UTC
  • mfrom: (16.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20120501180719-rjntk3287im4a0ns
Tags: 2012.04.01-1
* New upstream version.
  - Update mipsel-native-endianness.diff.
  - Update no-error-on-set-but-unused-variables.diff (partially merged).
  - Drop kirkwood_spi-irq_mask.diff (merged).
  - Drop kirkwood-disable-l2c.diff (merged).

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
        /*enable functional WDT clock */
198
198
        writel(APBC_APBCLK | APBC_FNCLK, &mpmu->wdtpcr);
199
199
}
 
200
 
 
201
/*
 
202
 * This function is derived from PowerPC code (read timebase as long long).
 
203
 * On ARM it just returns the timer value.
 
204
 */
 
205
unsigned long long get_ticks(void)
 
206
{
 
207
        return get_timer(0);
 
208
}
 
209
 
 
210
/*
 
211
 * This function is derived from PowerPC code (timebase clock frequency).
 
212
 * On ARM it returns the number of timer ticks per second.
 
213
 */
 
214
ulong get_tbclk (void)
 
215
{
 
216
        return (ulong)CONFIG_SYS_HZ;
 
217
}