diff options
author | Sam Povilus <kernel.development@povil.us> | 2017-03-15 20:43:24 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-17 14:14:30 +0900 |
commit | b44b96a060f3fd06456214cac7dfdd3ddf0caf2b (patch) | |
tree | 895eb9d97d0d78644b860510a1329fcaf3713ee2 /drivers/tty/serial/Kconfig | |
parent | 81e33b51ed69d2b2eaf3fbeb043144b9d9ec7629 (diff) | |
download | linux-b44b96a060f3fd06456214cac7dfdd3ddf0caf2b.tar.gz linux-b44b96a060f3fd06456214cac7dfdd3ddf0caf2b.tar.bz2 linux-b44b96a060f3fd06456214cac7dfdd3ddf0caf2b.zip |
uartlite: Adding a kernel parameter for the number of uartlites
The number of uartlites should be set by a kernel parameter instead of
using a #define. This allows the user to set the number of uartlites
using only kconfig and not modifying kernel source.
The uartlite is used by FPGAs that support a basically unlimited number
of uarts so limiting it at 16 dosn't make sense as users might need more
than that.
Signed-off-by: Sam Povilus <kernel.development@povil.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/Kconfig')
-rw-r--r-- | drivers/tty/serial/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index d8495b9fd0ce..896f5eb78da0 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -630,6 +630,15 @@ config SERIAL_UARTLITE_CONSOLE console (the system console is the device which receives all kernel messages and warnings and which allows logins in single user mode). +config SERIAL_UARTLITE_NR_UARTS + int "Maximum number of uartlite serial ports" + depends on SERIAL_UARTLITE + range 1 256 + default 1 + help + Set this to the number of uartlites in your system, or the number + you think you might implement. + config SERIAL_SUNCORE bool depends on SPARC |