From 2fbc18fe213b65bec113a9b18bf85016cee3f319 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Thu, 22 Oct 2015 12:36:31 +0200 Subject: arm: mvebu/kirkwood: Use common timer functions By using the common timer functions for mvebu/kirkwood we can get rid of quite a lot of code. Signed-off-by: Stefan Roese Cc: Luka Perkov Cc: Simon Guinot Cc: Valentin Longchamp --- arch/arm/mach-mvebu/include/mach/config.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/arm/mach-mvebu/include') diff --git a/arch/arm/mach-mvebu/include/mach/config.h b/arch/arm/mach-mvebu/include/mach/config.h index 1d49cab7fd..3281d90cda 100644 --- a/arch/arm/mach-mvebu/include/mach/config.h +++ b/arch/arm/mach-mvebu/include/mach/config.h @@ -85,6 +85,11 @@ #define CONFIG_SYS_I2C_SPEED 100000 #endif +/* Use common timer */ +#define CONFIG_SYS_TIMER_COUNTS_DOWN +#define CONFIG_SYS_TIMER_COUNTER (MVEBU_TIMER_BASE + 0x14) +#define CONFIG_SYS_TIMER_RATE 25000000 + /* Common SPL configuration */ #ifndef CONFIG_SPL_LDSCRIPT #define CONFIG_SPL_LDSCRIPT "arch/arm/mach-mvebu/u-boot-spl.lds" -- cgit