aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-airoha
diff options
context:
space:
mode:
authorGravatar John Crispin <john@phrozen.org> 2022-01-30 15:51:06 +0100
committerGravatar Matthias Brugger <matthias.bgg@gmail.com> 2022-03-01 09:02:01 +0100
commit2cf1c348d0f5d43b601974cbde3e6db5ad491a40 (patch)
tree2bd261841b615ba404008c3297fe995a289c7c5a /arch/arm/mach-airoha
parentdt-bindings: arm: airoha: Add binding for EN7523 SoC and EVB (diff)
downloadlinux-2cf1c348d0f5d43b601974cbde3e6db5ad491a40.tar.gz
linux-2cf1c348d0f5d43b601974cbde3e6db5ad491a40.tar.bz2
linux-2cf1c348d0f5d43b601974cbde3e6db5ad491a40.zip
ARM: Add basic support for Airoha EN7523 SoC
EN7523 is an armv8 based silicon used inside broadband access type devices such as xPON and xDSL. It shares various silicon blocks with MediaTek silicon such as the MT7622. Add basic support for Airoha EN7523, enough for booting to console. The UART is basically 8250-compatible, except for the clock selection. A clock-frequency value is synthesized to get this to run at 115200 bps. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Bert Vermeulen <bert@biot.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> Link: https://lore.kernel.org/r/20220130145116.88406-4-nbd@nbd.name Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'arch/arm/mach-airoha')
-rw-r--r--arch/arm/mach-airoha/Makefile2
-rw-r--r--arch/arm/mach-airoha/airoha.c16
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-airoha/Makefile b/arch/arm/mach-airoha/Makefile
new file mode 100644
index 000000000000..a5857d0d02eb
--- /dev/null
+++ b/arch/arm/mach-airoha/Makefile
@@ -0,0 +1,2 @@
+# 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
new file mode 100644
index 000000000000..ea23b5abb478
--- /dev/null
+++ b/arch/arm/mach-airoha/airoha.c
@@ -0,0 +1,16 @@
+// 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