summaryrefslogtreecommitdiff
path: root/src/soc
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/soc
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/soc')
-rw-r--r--src/soc/nvidia/tegra210/Kconfig1
-rw-r--r--src/soc/nvidia/tegra210/Makefile.inc1
-rw-r--r--src/soc/nvidia/tegra210/gic.c14
-rw-r--r--src/soc/nvidia/tegra210/ramstage.c4
4 files changed, 0 insertions, 20 deletions
diff --git a/src/soc/nvidia/tegra210/Kconfig b/src/soc/nvidia/tegra210/Kconfig
index 32748f3b6b..4fcbaffbee 100644
--- a/src/soc/nvidia/tegra210/Kconfig
+++ b/src/soc/nvidia/tegra210/Kconfig
@@ -6,7 +6,6 @@ config SOC_NVIDIA_TEGRA210
select ARCH_VERSTAGE_ARMV4
select ARCH_ROMSTAGE_ARMV4
select ARCH_RAMSTAGE_ARMV8_64
- select GIC
select HAVE_UART_SPECIAL
select ARM64_USE_ARM_TRUSTED_FIRMWARE
select GENERIC_GPIO_LIB
diff --git a/src/soc/nvidia/tegra210/Makefile.inc b/src/soc/nvidia/tegra210/Makefile.inc
index e213751308..f76ab347e0 100644
--- a/src/soc/nvidia/tegra210/Makefile.inc
+++ b/src/soc/nvidia/tegra210/Makefile.inc
@@ -79,7 +79,6 @@ ramstage-y += i2c6.c
ramstage-y += ape.c
ramstage-y += power.c
ramstage-y += dma.c
-ramstage-y += gic.c
ramstage-y += monotonic_timer.c
ramstage-y += padconfig.c
ramstage-y += funitcfg.c
diff --git a/src/soc/nvidia/tegra210/gic.c b/src/soc/nvidia/tegra210/gic.c
deleted file mode 100644
index f02ce53712..0000000000
--- a/src/soc/nvidia/tegra210/gic.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <gic.h>
-#include <soc/addressmap.h>
-
-void *gicd_base(void)
-{
- return (void *)(uintptr_t)TEGRA_GICD_BASE;
-}
-
-void *gicc_base(void)
-{
- return (void *)(uintptr_t)TEGRA_GICC_BASE;
-}
diff --git a/src/soc/nvidia/tegra210/ramstage.c b/src/soc/nvidia/tegra210/ramstage.c
index c470e6b5cd..50249b7051 100644
--- a/src/soc/nvidia/tegra210/ramstage.c
+++ b/src/soc/nvidia/tegra210/ramstage.c
@@ -5,7 +5,6 @@
#include <cbmem.h>
#include <console/console.h>
#include <device/mmio.h>
-#include <gic.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/mmu_operations.h>
@@ -41,9 +40,6 @@ static void mselect_enable_wrap(void)
void ramstage_entry(void);
void ramstage_entry(void)
{
- /* TODO: Is this still needed? */
- gic_init();
-
/* TODO: Move arch timer setup to BL31? */
arm64_arch_timer_init();