Add SP804 delay timer driver
authorRyan Harkin <ryan.harkin@linaro.org>
Tue, 17 Mar 2015 14:52:39 +0000 (14:52 +0000)
committerDan Handley <dan.handley@arm.com>
Thu, 18 Jun 2015 15:06:26 +0000 (16:06 +0100)
commitcc58b2d0f5698560d9f8c26e136fd0afc1d5d71b
tree9f03dd3102bd2fc1b301e708333da0d6cb1803fd
parent9055c7d149758f2f2a646f40f08d6d24b07dfff3
Add SP804 delay timer driver

Add a delay timer driver for the ARM SP804 dual timer.

This driver only uses the first timer, called timer 1 in the
SP804 Technical Reference Manual (ARM DDI 0271D).

To use this driver, the BSP must provide three constants:

*   The base address of the SP804 dual timer
*   The clock multiplier
*   The clock divider

The BSP is responsible for calling sp804_timer_init(). The SP804
driver instantiates a constant timer_ops_t and calls the generic
timer_init().

Change-Id: I49ba0a52bdf6072f403d1d0a20e305151d4bc086
Co-authored-by: Dan Handley <dan.handley@arm.com>
drivers/arm/sp804/sp804_delay_timer.c [new file with mode: 0644]
include/drivers/arm/sp804_delay_timer.h [new file with mode: 0644]