mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
acpi/arm64: Add GTDT table parse driver
This patch adds support for parsing arch timer info in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Signed-off-by: Fu Wei <fu.wei@linaro.org> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org> Tested-by: Hanjun Guo <hanjun.guo@linaro.org> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
This commit is contained in:
parent
c389d701df
commit
5f1ae4ebe5
5 changed files with 168 additions and 0 deletions
|
@ -595,6 +595,12 @@ enum acpi_reconfig_event {
|
|||
int acpi_reconfig_notifier_register(struct notifier_block *nb);
|
||||
int acpi_reconfig_notifier_unregister(struct notifier_block *nb);
|
||||
|
||||
#ifdef CONFIG_ACPI_GTDT
|
||||
int acpi_gtdt_init(struct acpi_table_header *table, int *platform_timer_count);
|
||||
int acpi_gtdt_map_ppi(int type);
|
||||
bool acpi_gtdt_c3stop(int type);
|
||||
#endif
|
||||
|
||||
#else /* !CONFIG_ACPI */
|
||||
|
||||
#define acpi_disabled 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue