serial: 8250/ingenic: fix building with SERIAL_8250=m
[deliverable/linux.git] / drivers / tty / serial / 8250 / Kconfig
index dca2031256d95983b423d8331c9b171f57141fe1..a9d25871540606f66d4f2c4aa681cf278a9146a3 100644 (file)
@@ -385,9 +385,10 @@ config SERIAL_8250_UNIPHIER
          serial ports, say Y to this option. If unsure, say N.
 
 config SERIAL_8250_INGENIC
-       bool "Support for Ingenic SoC serial ports"
-       depends on OF_FLATTREE
-       select LIBFDT
+       tristate "Support for Ingenic SoC serial ports"
+       depends on SERIAL_8250
+       depends on (OF_FLATTREE && SERIAL_8250_CONSOLE) || !SERIAL_EARLYCON
+       depends on MIPS || COMPILE_TEST
        help
          If you have a system using an Ingenic SoC and wish to make use of
          its UARTs, say Y to this option. If unsure, say N.
This page took 0.022647 seconds and 5 git commands to generate.