]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: sifive: select by default if SOC_CANAAN
authorConor Dooley <conor.dooley@microchip.com>
Wed, 5 Oct 2022 17:13:46 +0000 (18:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Nov 2022 07:10:11 +0000 (08:10 +0100)
With the aim of dropping direct selects of drivers from Kconfig.socs,
default the SiFive serial drivers to enabled if SOC_CANAAN.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221005171348.167476-4-conor@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig

index 94457b54125b6ca8311aec737b2dac4f00a4b91a..c55b947f3cdbb7a789dec40a380c0c9d9a6c64fc 100644 (file)
@@ -958,7 +958,7 @@ config SERIAL_OMAP_CONSOLE
 config SERIAL_SIFIVE
        tristate "SiFive UART support"
        depends on OF
-       default SOC_SIFIVE
+       default SOC_SIFIVE || SOC_CANAAN
        select SERIAL_CORE
        help
          Select this option if you are building a kernel for a device that
@@ -968,7 +968,7 @@ config SERIAL_SIFIVE
 config SERIAL_SIFIVE_CONSOLE
        bool "Console on SiFive UART"
        depends on SERIAL_SIFIVE=y
-       default SOC_SIFIVE
+       default SOC_SIFIVE || SOC_CANAAN
        select SERIAL_CORE_CONSOLE
        select SERIAL_EARLYCON
        help