time.c 318 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2003
  4. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. */
  6. #include <common.h>
  7. #include <asm/mipsregs.h>
  8. unsigned long notrace timer_read_counter(void)
  9. {
  10. return read_c0_count();
  11. }
  12. ulong notrace get_tbclk(void)
  13. {
  14. return CONFIG_SYS_MIPS_TIMER_FREQ;
  15. }