Skip to content

Commit 00e58c3

Browse files
glneoarndb
authored andcommitted
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>
1 parent dcfbe02 commit 00e58c3

5 files changed

Lines changed: 11 additions & 30 deletions

File tree

arch/arm/Kconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -342,17 +342,6 @@ config ARCH_MULTIPLATFORM
342342

343343
source "arch/arm/Kconfig.platforms"
344344

345-
config ARCH_AIROHA
346-
bool "Airoha SoC Support"
347-
depends on ARCH_MULTI_V7
348-
select ARM_AMBA
349-
select ARM_GIC
350-
select ARM_GIC_V3
351-
select ARM_PSCI
352-
select HAVE_ARM_ARCH_TIMER
353-
help
354-
Support for Airoha EN7523 SoCs
355-
356345
#
357346
# This is sorted alphabetically by mach-* pathname. However, plat-*
358347
# Kconfigs may be included either alphabetically (according to the

arch/arm/Kconfig.platforms

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ config ARCH_VIRT
6767
select ARM_PSCI
6868
select HAVE_ARM_ARCH_TIMER
6969

70+
config ARCH_AIROHA
71+
bool "Airoha SoC Support"
72+
depends on ARCH_MULTI_V7
73+
select ARM_AMBA
74+
select ARM_GIC
75+
select ARM_GIC_V3
76+
select ARM_PSCI
77+
select HAVE_ARM_ARCH_TIMER
78+
help
79+
Support for Airoha EN7523 SoCs
80+
7081
config MACH_ASM9260
7182
bool "Alphascale ASM9260"
7283
depends on ARCH_MULTI_V5

arch/arm/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000
167167
# Machine directory name. This list is sorted alphanumerically
168168
# by CONFIG_* macro name.
169169
machine-$(CONFIG_ARCH_ACTIONS) += actions
170-
machine-$(CONFIG_ARCH_AIROHA) += airoha
171170
machine-$(CONFIG_ARCH_ALPINE) += alpine
172171
machine-$(CONFIG_ARCH_ARTPEC) += artpec
173172
machine-$(CONFIG_ARCH_ASPEED) += aspeed

arch/arm/mach-airoha/Makefile

Lines changed: 0 additions & 2 deletions
This file was deleted.

arch/arm/mach-airoha/airoha.c

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)