|
@@ -12,8 +12,21 @@
|
|
#ifndef _ASM_ACPI_H
|
|
#ifndef _ASM_ACPI_H
|
|
#define _ASM_ACPI_H
|
|
#define _ASM_ACPI_H
|
|
|
|
|
|
|
|
+#include <linux/mm.h>
|
|
|
|
+
|
|
/* Basic configuration for ACPI */
|
|
/* Basic configuration for ACPI */
|
|
#ifdef CONFIG_ACPI
|
|
#ifdef CONFIG_ACPI
|
|
|
|
+/* ACPI table mapping after acpi_gbl_permanent_mmap is set */
|
|
|
|
+static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys,
|
|
|
|
+ acpi_size size)
|
|
|
|
+{
|
|
|
|
+ if (!page_is_ram(phys >> PAGE_SHIFT))
|
|
|
|
+ return ioremap(phys, size);
|
|
|
|
+
|
|
|
|
+ return ioremap_cache(phys, size);
|
|
|
|
+}
|
|
|
|
+#define acpi_os_ioremap acpi_os_ioremap
|
|
|
|
+
|
|
#define acpi_strict 1 /* No out-of-spec workarounds on ARM64 */
|
|
#define acpi_strict 1 /* No out-of-spec workarounds on ARM64 */
|
|
extern int acpi_disabled;
|
|
extern int acpi_disabled;
|
|
extern int acpi_noirq;
|
|
extern int acpi_noirq;
|