[PATCH v2 2/2] serial: 8250: loongson: Enable building on MIPS Loongson64

From: Rong Zhang

Date: Sun Mar 15 2026 - 14:44:17 EST


Loongson 3A4000 is a MIPS-based Loongson64 CPU which also supports
8250_loongson (loongson-uart).

Enable building on MIPS Loongson64 so that Loongson 3A4000 can benefit
from it.

Signed-off-by: Rong Zhang <rongrong@xxxxxxxxxxxxxxxxx>
---
drivers/tty/serial/8250/Kconfig | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig
index fd4e8b6ab60d..fc3e58d62233 100644
--- a/drivers/tty/serial/8250/Kconfig
+++ b/drivers/tty/serial/8250/Kconfig
@@ -465,11 +465,12 @@ config SERIAL_8250_OMAP_TTYO_FIXUP
config SERIAL_8250_LOONGSON
tristate "Loongson 8250 based serial port"
depends on SERIAL_8250
- depends on LOONGARCH || COMPILE_TEST
+ depends on LOONGARCH || MACH_LOONGSON64 || COMPILE_TEST
help
- If you have a machine based on LoongArch CPU you can enable
- its onboard serial ports by enabling this option. The option
- is applicable to both devicetree and ACPI, say Y to this option.
+ If you have a machine based on LoongArch CPU or MIPS-based Loongson
+ 3A4000 CPU you can enable its onboard serial ports by enabling this
+ option. The option is applicable to both devicetree and ACPI, say Y
+ to enable this option.
If unsure, say N.

config SERIAL_8250_LPC18XX
--
2.53.0