aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-04-09 04:34:34 +0300
committerTom Rini <trini@konsulko.com>2018-04-28 10:42:35 -0400
commitfac379e1ea4090471c7fdbc184f83409ae4be942 (patch)
tree11ec53ef79ad3e6110400d4044e2ddd0e067b10c /drivers
parent76dd0f2c3dbfe2fe56288d7ec8f6743eca460864 (diff)
downloadu-boot-fac379e1ea4090471c7fdbc184f83409ae4be942.zip
u-boot-fac379e1ea4090471c7fdbc184f83409ae4be942.tar.gz
u-boot-fac379e1ea4090471c7fdbc184f83409ae4be942.tar.bz2
serial: Migrate CONFIG_FSL_LINFLEXUART to Kconfig
Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/Kconfig7
-rw-r--r--drivers/serial/serial_linflexuart.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 3d5b2bf..4be8868 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -454,6 +454,13 @@ config BCM6345_SERIAL
help
Select this to enable UART on BCM6345 SoCs.
+config FSL_LINFLEXUART
+ bool "Freescale Linflex UART support"
+ depends on DM_SERIAL
+ help
+ Select this to enable the Linflex serial module found on some
+ NXP SoCs like S32V234.
+
config FSL_LPUART
bool "Freescale LPUART support"
help
diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c
index fbb3959..b706fdb 100644
--- a/drivers/serial/serial_linflexuart.c
+++ b/drivers/serial/serial_linflexuart.c
@@ -35,10 +35,6 @@
DECLARE_GLOBAL_DATA_PTR;
-#ifndef CONFIG_DM_SERIAL
-#error "The linflex serial driver does not have non-DM support."
-#endif
-
static void _linflex_serial_setbrg(struct linflex_fsl *base, int baudrate)
{
u32 clk = mxc_get_clock(MXC_UART_CLK);