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