acpi/arm64: Add memory-mapped timer support in GTDT driver
authorFu Wei <fu.wei@linaro.org>
Fri, 31 Mar 2017 17:51:03 +0000 (01:51 +0800)
committerMark Rutland <mark.rutland@arm.com>
Wed, 19 Apr 2017 15:59:59 +0000 (16:59 +0100)
commita712c3ed9b8a4565a200f3e8e09c42079b1666b3
tree82353265fc016712c4fa008b30d8282c25368d84
parentf79d209405fada700047245ed1a152bab8d6535e
acpi/arm64: Add memory-mapped timer support in GTDT driver

On platforms booting with ACPI, architected memory-mapped timers'
configuration data is provided by firmware through the ACPI GTDT
static table.

The clocksource architected timer kernel driver requires a firmware
interface to collect timer configuration and configure its driver.
this infrastructure is present for device tree systems, but it is
missing on systems booting with ACPI.

Implement the kernel infrastructure required to parse the static
ACPI GTDT table so that the architected timer clocksource driver can
make use of it on systems booting with ACPI, therefore enabling
the corresponding timers configuration.

Signed-off-by: Fu Wei <fu.wei@linaro.org>
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
[Mark: restructure error handling]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
drivers/acpi/arm64/gtdt.c
include/linux/acpi.h