mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-04 18:41:03 +00:00
cb91173a7f
We are about to reuse the rockchip timer (header file) for 64bit ARMv8 chips, so it seems a good time to make the register sizes explicit by changing from 'unsigned int' to 'u32'. Reorders the header-includes in rk_timer.c to ensure that 'u32' is definded before it is used by 'asm/arch/timer.h'. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22 lines
402 B
C
22 lines
402 B
C
/*
|
|
* (C) Copyright 2015 Rockchip Electronics Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_TIMER_H
|
|
#define __ASM_ARCH_TIMER_H
|
|
|
|
struct rk_timer {
|
|
u32 timer_load_count0;
|
|
u32 timer_load_count1;
|
|
u32 timer_curr_value0;
|
|
u32 timer_curr_value1;
|
|
u32 timer_ctrl_reg;
|
|
u32 timer_int_status;
|
|
};
|
|
|
|
void rockchip_timer_init(void);
|
|
void rockchip_udelay(unsigned int usec);
|
|
|
|
#endif
|