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

« back to all changes in this revision

Viewing changes to arch/arm/cpu/arm926ejs/orion5x/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:
167
167
        lastdec = read_timer();
168
168
        timestamp = 0;
169
169
}
 
170
 
 
171
/*
 
172
 * This function is derived from PowerPC code (read timebase as long long).
 
173
 * On ARM it just returns the timer value.
 
174
 */
 
175
unsigned long long get_ticks(void)
 
176
{
 
177
        return get_timer(0);
 
178
}
 
179
 
 
180
/*
 
181
 * This function is derived from PowerPC code (timebase clock frequency).
 
182
 * On ARM it returns the number of timer ticks per second.
 
183
 */
 
184
ulong get_tbclk (void)
 
185
{
 
186
        return (ulong)CONFIG_SYS_HZ;
 
187
}