]> git.sur5r.net Git - u-boot/commit
armv7m: Add SysTick timer driver
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>
Fri, 17 Feb 2017 08:22:17 +0000 (08:22 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 15 Mar 2017 00:40:18 +0000 (20:40 -0400)
commit622bad103b3e6947439cb026b98947d9524ab3da
tree72cead037569195d15aa63061b7e0a404e02f3fd
parent35d8265c64dee1bd3015883673960df32c4e9c1a
armv7m: Add SysTick timer driver

The SysTick is a 24-bit down counter that is found on all ARM Cortex
M3, M4, M7 devices and is always located at a fixed address.

The number of reference clock ticks that correspond to 10ms is normally
defined in the SysTick Calibration register's TENMS field. However, on some
devices this is wrong, so this driver allows the clock rate to be defined
using CONFIG_SYS_HZ_CLOCK.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Vikas MANOCHA <vikas.manocha@st.com>
arch/arm/cpu/armv7m/Makefile
arch/arm/cpu/armv7m/systick-timer.c [new file with mode: 0644]