]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
serial: 8250: loongson: Enable building on MIPS Loongson64
authorRong Zhang <rongrong@oss.cipunited.com>
Sun, 15 Mar 2026 18:42:57 +0000 (02:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Mar 2026 15:36:20 +0000 (17:36 +0200)
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@oss.cipunited.com>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Link: https://patch.msgid.link/20260315184301.412844-3-rongrong@oss.cipunited.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/Kconfig

index fd4e8b6ab60d3e01892c52fb12e03288bb9aa8a1..fc3e58d62233c9211c6eaaeb40f273bfa61229f0 100644 (file)
@@ -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