]> git.baikalelectronics.ru Git - uboot.git/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)
commit4170c411e2430adea615834f893ff50788c4e0c8
tree72cead037569195d15aa63061b7e0a404e02f3fd
parent060ca6177fa74b15dd07aa0361f3ca0b42b17355
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]