]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:40:48 +0000 (13:40 -0300)
commit961a85cdc2264de13359533c9a557b113241cf55
treef2036fc0bc1818839f4b30a6a03d406973c038ec
parentd189cb58f3c9d6ef51faf2cd3767a136303a9bed
acpi/arm64: Add memory-mapped timer support in GTDT driver

BugLink: http://bugs.launchpad.net/bugs/1688114
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>
(cherry picked from commit a712c3ed9b8a4565a200f3e8e09c42079b1666b3)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/acpi/arm64/gtdt.c
include/linux/acpi.h