summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMaureen Helm <maureen.helm@nxp.com>2017-01-18 05:54:58 -0600
committerKumar Gala <kumar.gala@linaro.org>2017-01-30 11:02:35 -0600
commite290006144558340a95e6f9215687bab70e71ca3 (patch)
tree64d202133846b7a96dffe389a4712ab8d85d85cd /arch
parentec5ee8b33d0a5d4d63303b517294a7019870db06 (diff)
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/soc/nxp_kinetis/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/soc/nxp_kinetis/Kconfig b/arch/arm/soc/nxp_kinetis/Kconfig
index c0b01b56d..f925424b5 100644
--- a/arch/arm/soc/nxp_kinetis/Kconfig
+++ b/arch/arm/soc/nxp_kinetis/Kconfig
@@ -44,6 +44,12 @@ config HAS_RNGA
help
Set if the random number generator accelerator (RNGA) module is present in the SoC.
+config HAS_LPUART
+ bool
+ default n
+ help
+ Set if the low power uart (LPUART) module is present in the SoC.
+
if HAS_OSC
choice