arm: mvebu/kirkwood: Use common timer functions
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Cc Luka Perkov <[email protected]>
Cc Simon Guinot <[email protected]>
Cc Valentin Longchamp <[email protected]>
--- arch/arm/mach-kirkwood/include/mach/config.h | 5 + arch/arm/mach-mvebu/include/mach/config.h | 5 + arch/arm/mach-mvebu/timer.c | 136 +++------------------------ 3 files changed, 22 insertions(+), 124 deletions(-)
arch/arm/mach-kirkwood/include/mach/config.h +5 -0
@@ -135,4 +135,9 @@#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 CONFIG_SYS_TCLK +#endif /* _KW_CONFIG_H */
arch/arm/mach-mvebu/include/mach/config.h +5 -0
@@ -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"
arch/arm/mach-mvebu/timer.c +12 -124
161 lines not on this page · raw message
Signature · 1 line
2.6.3