zephyr/drivers/serial/Kconfig.mcux_lpuart
Maureen Helm e290006144 serial: Introduce new mcux lpuart shim driver
Adds a shim layer around the mcux lpuart driver to adapt it to the Zephyr
serial interface.

NXP has multiple uart hardware blocks that implement different features
and have different register maps. The k64 has a uart block called
'uart', while the kw41 has a uart block called 'lpuart' (low power
uart). The MCUXpresso SDK provides separate drivers for each type of
uart block but with similar software interfaces. As a result, there are
also separate shim drivers in Zephyr. There is a 1:1:1 relationship
between hardware block, mcux driver, and mcux shim driver.

Because we now have two mcux shim drivers for the uart interface, a new
naming convention is created:

	<interface>_mcux_<hw block>

Where <interface> is the name of the Zephyr interface, in this case
'uart'. This convention is not new.

<hw block> is the name of the NXP hardware block, in this case 'lpuart'.
This is the new part, and distinguishes different hardware blocks
for the same interface.

Change-Id: I3a80b9bffa116bbb2b02ee950d4bdd79a19a4edc
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-01-30 11:02:35 -06:00

40 lines
686 B
Text

# Kconfig - MCUXpresso SDK LPUART
#
# Copyright (c) 2017, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig UART_MCUX_LPUART
bool "MCUX LPUART driver"
depends on HAS_MCUX && HAS_LPUART
default n
select SERIAL_HAS_DRIVER
help
Enable the MCUX LPUART driver.
if UART_MCUX_LPUART
menuconfig UART_MCUX_LPUART_0
bool "UART 0"
default n
help
Enable UART 0.
if UART_MCUX_LPUART_0
config UART_MCUX_LPUART_0_NAME
string "UART 0 driver name"
default "UART_0"
config UART_MCUX_LPUART_0_IRQ_PRI
int "UART 0 interrupt priority"
default 0
config UART_MCUX_LPUART_0_BAUD_RATE
int "UART 0 baud rate"
default 115200
endif # UART_MCUX_LPUART_0
endif # UART_MCUX_LPUART