drivers: serial: ns16550: Remove hard-coded max instance count
Instead of having a hard-coded maximum instance count, introduce a Kconfig variable for it. The inclusion of the per-instance header files is solved by having them chain-include each other with a pre-processor condition that checks if the current header file is the last one or not. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
048dcea54b
commit
4fa0a9b4b2
4 changed files with 19 additions and 4 deletions
|
@ -11,6 +11,13 @@ menuconfig UART_NS16550
|
|||
|
||||
if UART_NS16550
|
||||
|
||||
config UART_NS16550_MAX_INSTANCES
|
||||
int "Maximum number of supported driver instances"
|
||||
range 1 32
|
||||
default 4
|
||||
help
|
||||
The maximum number of supported driver instances in device tree.
|
||||
|
||||
config UART_NS16550_LINE_CTRL
|
||||
bool "Enable Serial Line Control for Apps"
|
||||
depends on UART_LINE_CTRL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue