mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
dcfbe025c2
commit
00e58c36d2
|
|
@ -342,17 +342,6 @@ config ARCH_MULTIPLATFORM
|
||||||
|
|
||||||
source "arch/arm/Kconfig.platforms"
|
source "arch/arm/Kconfig.platforms"
|
||||||
|
|
||||||
config ARCH_AIROHA
|
|
||||||
bool "Airoha SoC Support"
|
|
||||||
depends on ARCH_MULTI_V7
|
|
||||||
select ARM_AMBA
|
|
||||||
select ARM_GIC
|
|
||||||
select ARM_GIC_V3
|
|
||||||
select ARM_PSCI
|
|
||||||
select HAVE_ARM_ARCH_TIMER
|
|
||||||
help
|
|
||||||
Support for Airoha EN7523 SoCs
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# This is sorted alphabetically by mach-* pathname. However, plat-*
|
# This is sorted alphabetically by mach-* pathname. However, plat-*
|
||||||
# Kconfigs may be included either alphabetically (according to the
|
# Kconfigs may be included either alphabetically (according to the
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,17 @@ config ARCH_VIRT
|
||||||
select ARM_PSCI
|
select ARM_PSCI
|
||||||
select HAVE_ARM_ARCH_TIMER
|
select HAVE_ARM_ARCH_TIMER
|
||||||
|
|
||||||
|
config ARCH_AIROHA
|
||||||
|
bool "Airoha SoC Support"
|
||||||
|
depends on ARCH_MULTI_V7
|
||||||
|
select ARM_AMBA
|
||||||
|
select ARM_GIC
|
||||||
|
select ARM_GIC_V3
|
||||||
|
select ARM_PSCI
|
||||||
|
select HAVE_ARM_ARCH_TIMER
|
||||||
|
help
|
||||||
|
Support for Airoha EN7523 SoCs
|
||||||
|
|
||||||
config MACH_ASM9260
|
config MACH_ASM9260
|
||||||
bool "Alphascale ASM9260"
|
bool "Alphascale ASM9260"
|
||||||
depends on ARCH_MULTI_V5
|
depends on ARCH_MULTI_V5
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,6 @@ textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000
|
||||||
# Machine directory name. This list is sorted alphanumerically
|
# Machine directory name. This list is sorted alphanumerically
|
||||||
# by CONFIG_* macro name.
|
# by CONFIG_* macro name.
|
||||||
machine-$(CONFIG_ARCH_ACTIONS) += actions
|
machine-$(CONFIG_ARCH_ACTIONS) += actions
|
||||||
machine-$(CONFIG_ARCH_AIROHA) += airoha
|
|
||||||
machine-$(CONFIG_ARCH_ALPINE) += alpine
|
machine-$(CONFIG_ARCH_ALPINE) += alpine
|
||||||
machine-$(CONFIG_ARCH_ARTPEC) += artpec
|
machine-$(CONFIG_ARCH_ARTPEC) += artpec
|
||||||
machine-$(CONFIG_ARCH_ASPEED) += aspeed
|
machine-$(CONFIG_ARCH_ASPEED) += aspeed
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
|
||||||
obj-y += airoha.o
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Reference in New Issue