aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r--arch/arm64/kernel/setup.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 2c822ef94f34..3f9efe4d9f9d 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -237,6 +237,24 @@ static void __init request_standard_resources(void)
}
}
+#if defined(CONFIG_ARM64_INDIRECT_PIO)
+arm64_isa_io arm64_isa_pio;
+EXPORT_SYMBOL_GPL(arm64_isa_pio);
+
+int arm64_set_isa_pio(arm64_isa_io _arm64_isa_pio)
+{
+ if (arm64_isa_pio) {
+ pr_err("arm64 indirect port io have been hooked by others!\n");
+ return -EINVAL;
+ }
+
+ arm64_isa_pio = _arm64_isa_pio;
+
+ return 0;
+}
+
+#endif
+
u64 __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = INVALID_HWID };
void __init setup_arch(char **cmdline_p)