uart/nsim: Make config for uart/nsim explicit

This adds CONFIG_UART_NSIM to enable the uart/nsim driver.
This fixes compilation issue where the base address parameter
is not defined due to CONFIG_NSIM=y but CONFIG_SERIAL=n.

Change-Id: I1dc1c15b22ad174d4db514d89551780f0dfcae66
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2015-12-04 09:36:33 -08:00 committed by Anas Nashif
parent 0aa73523dd
commit a0a140f470
2 changed files with 10 additions and 3 deletions

View file

@ -1,7 +1,14 @@
config UART_NSIM
bool "UART driver for MetaWare nSim"
default n
depends on NSIM && SERIAL
help
This enables the UART driver for the MetaWare nSim simulator.
config UART_NSIM_PORT_0_NAME
string "Port 0 Device Name"
default "UART_0"
depends on NSIM
depends on UART_NSIM
help
This is the device name for UART, and is included in the device
struct.
@ -10,7 +17,7 @@ config UART_NSIM_PORT_0_BASE_ADDR
hex
prompt "Port 0 Register Address"
default 0x00000000
depends on NSIM
depends on UART_NSIM
help
The base address of UART port.

View file

@ -1,4 +1,4 @@
obj-$(CONFIG_UART_NS16550) += uart_ns16550.o
obj-$(CONFIG_UART_K20) += uart_k20.o
obj-$(CONFIG_UART_STELLARIS) += uart_stellaris.o
obj-$(CONFIG_NSIM) += uart_nsim.o
obj-$(CONFIG_UART_NSIM) += uart_nsim.o