summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-09-21 17:53:09 -0700
committerJulius Werner <jwerner@chromium.org>2021-10-01 00:01:56 +0000
commitb5e7bd2a58c0ae2c580eb53a3c154e40114f2db4 (patch)
treec84b7f5d01fecdd688d0e66627b0d68528458c8b /src/include
parentee760b4be8a204cfb65767a5ccd6be830380b518 (diff)
drivers/gic: Remove unnecessary code
On AArch64 platforms, GIC initialization is generally the job of Trusted Firmware and shouldn't be necessary in coreboot. Only the ancient T210 platform (which was started before we had decided on using Trusted Firmware) calls this code, and even there they have a comment wondering "do we still need this?". I'm just gonna assume (without testing because that board is ancient and I'm lazy) that they don't, and that the TF GIC initialization[1] is sufficient here. Remove this obsolete driver. [1] https://review.trustedfirmware.org/plugins/gitiles/TF-A/trusted-firmware-a/+/3ff448/plat/nvidia/tegra/soc/t210/plat_setup.c#259 Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I3e9d90039dd27cb3a13f830ba21fc5cc7a70abe2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57818 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gic.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/include/gic.h b/src/include/gic.h
deleted file mode 100644
index a4201bb440..0000000000
--- a/src/include/gic.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef GIC_H
-#define GIC_H
-
-#if CONFIG(GIC)
-
-/* Initialize the GIC on the currently processor, including GICD and GICC. */
-void gic_init(void);
-void gic_disable(void);
-void gic_enable(void);
-
-/* Return a pointer to the base of the GIC distributor mmio region. */
-void *gicd_base(void);
-
-/* Return a pointer to the base of the GIC CPU mmio region. */
-void *gicc_base(void);
-
-#else /* CONFIG_GIC */
-
-static inline void gic_init(void) {}
-static inline void gic_disable(void) {}
-
-#endif /* CONFIG_GIC */
-
-#endif /* GIC_H */