timer.h 456 B

12345678910111213141516171819202122
  1. /*
  2. * (C) Copyright 2015 Rockchip Electronics Co., Ltd
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_ARCH_TIMER_H
  7. #define __ASM_ARCH_TIMER_H
  8. struct rk_timer {
  9. unsigned int timer_load_count0;
  10. unsigned int timer_load_count1;
  11. unsigned int timer_curr_value0;
  12. unsigned int timer_curr_value1;
  13. unsigned int timer_ctrl_reg;
  14. unsigned int timer_int_status;
  15. };
  16. void rockchip_timer_init(void);
  17. void rockchip_udelay(unsigned int usec);
  18. #endif