Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b44b96a0 authored by Sam Povilus's avatar Sam Povilus Committed by Greg Kroah-Hartman
Browse files

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: default avatarSam Povilus <kernel.development@povil.us>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 81e33b51
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -630,6 +630,15 @@ config SERIAL_UARTLITE_CONSOLE
	  console (the system console is the device which receives all kernel
	  console (the system console is the device which receives all kernel
	  messages and warnings and which allows logins in single user mode).
	  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
config SERIAL_SUNCORE
	bool
	bool
	depends on SPARC
	depends on SPARC
+1 −1
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@
#define ULITE_NAME		"ttyUL"
#define ULITE_NAME		"ttyUL"
#define ULITE_MAJOR		204
#define ULITE_MAJOR		204
#define ULITE_MINOR		187
#define ULITE_MINOR		187
#define ULITE_NR_UARTS		16
#define ULITE_NR_UARTS		CONFIG_SERIAL_UARTLITE_NR_UARTS


/* ---------------------------------------------------------------------
/* ---------------------------------------------------------------------
 * Register definitions
 * Register definitions