diff options
author | Andrew Davis <afd@ti.com> | 2023-11-13 08:43:56 -0600 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-12-22 14:12:28 +0000 |
commit | 00e58c36d20aa011cb0e2f087d9422bf4c6da75d (patch) | |
tree | 5176fe1f9ac813bfbcc5874def0eb837b8f2eec1 /arch/arm/mach-airoha | |
parent | dcfbe025c29b0df82cadd25cc0bbb89a5bda71fb (diff) | |
download | lwn-00e58c36d20aa011cb0e2f087d9422bf4c6da75d.tar.gz lwn-00e58c36d20aa011cb0e2f087d9422bf4c6da75d.zip |
ARM: mach-airoha: Rework support and directory structure
Having a platform need a mach-* directory should be seen as a negative,
it means the platform needs special non-standard handling. ARM64 support
does not allow mach-* directories at all. While we may not get to that
given all the non-standard architectures we support, we should still try
to get as close as we can and reduce the number of mach directories.
The mach-airoha/ directory, and files within, provide just one "feature":
having the kernel print the machine name if the DTB does not also contain
a "model" string (which they always do). To reduce the number of mach-*
directories let's do without that feature and remove this directory.
It also seems there was a copy/paste error and the "MEDIATEK_DT"
name was re-used in the DT_MACHINE_START macro. This may have caused
conflicts if this was built in a multi-arch configuration.
NOTE: The default l2c_aux_mask is now ~0 but these devices never have
this type of cache controller so this is safe.
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-airoha')
-rw-r--r-- | arch/arm/mach-airoha/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-airoha/airoha.c | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/arch/arm/mach-airoha/Makefile b/arch/arm/mach-airoha/Makefile deleted file mode 100644 index a5857d0d02eb..000000000000 --- a/arch/arm/mach-airoha/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-y += airoha.o diff --git a/arch/arm/mach-airoha/airoha.c b/arch/arm/mach-airoha/airoha.c deleted file mode 100644 index ea23b5abb478..000000000000 --- a/arch/arm/mach-airoha/airoha.c +++ /dev/null @@ -1,16 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Device Tree support for Airoha SoCs - * - * Copyright (c) 2022 Felix Fietkau <nbd@nbd.name> - */ -#include <asm/mach/arch.h> - -static const char * const airoha_board_dt_compat[] = { - "airoha,en7523", - NULL, -}; - -DT_MACHINE_START(MEDIATEK_DT, "Airoha Cortex-A53 (Device Tree)") - .dt_compat = airoha_board_dt_compat, -MACHINE_END |