diff options
author | Wadim Egorov <w.egorov@phytec.de> | 2016-08-24 14:49:24 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-26 07:28:31 +0200 |
commit | 413a35395aef648dd605f8c06dd7c481d588a815 (patch) | |
tree | dfa2d707f0d2504832038b3600a0d218a4db2db9 /arch/arm/mach-rockchip | |
parent | b9c57abc8c3ce61f17f6ca10811356e475541784 (diff) | |
download | barebox-413a35395aef648dd605f8c06dd7c481d588a815.tar.gz barebox-413a35395aef648dd605f8c06dd7c481d588a815.tar.xz |
clocksource: Add rk3288 timer driver
This driver comes from the u-boot (v2016.01).
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-rockchip')
-rw-r--r-- | arch/arm/mach-rockchip/Kconfig | 5 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/include/mach/timer.h | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index e027faec1d..71fcbe73fd 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -7,6 +7,10 @@ config ARCH_TEXT_BASE default 0x68000000 if ARCH_RK3188 default 0x0 if ARCH_RK3288 +config RK_TIMER + hex + default 1 + choice prompt "Select Rockchip SoC" @@ -15,6 +19,7 @@ config ARCH_RK3188 config ARCH_RK3288 bool "Rockchip RK3288 SoCs" + select CLOCKSOURCE_ROCKCHIP endchoice comment "select Rockchip boards:" diff --git a/arch/arm/mach-rockchip/include/mach/timer.h b/arch/arm/mach-rockchip/include/mach/timer.h new file mode 100644 index 0000000000..e6ed0e4e3e --- /dev/null +++ b/arch/arm/mach-rockchip/include/mach/timer.h @@ -0,0 +1,19 @@ +/* + * (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 { + unsigned int timer_load_count0; + unsigned int timer_load_count1; + unsigned int timer_curr_value0; + unsigned int timer_curr_value1; + unsigned int timer_ctrl_reg; + unsigned int timer_int_status; +}; + +#endif |