]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
imx: ventana: enable DM_SERIAL
authorTim Harvey <tharvey@gateworks.com>
Sat, 9 May 2015 01:28:29 +0000 (18:28 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 13:00:30 +0000 (15:00 +0200)
mxc_serial supports DM so lets use it.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c
include/configs/gw_ventana.h

index 8818be4b727366118972be568c91d6470a99b2bd..554cd844b8ee2bdeecabf9bb956f89c12f64f344 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/imx-common/sata.h>
 #include <asm/imx-common/spi.h>
 #include <asm/imx-common/video.h>
+#include <dm/platform_data/serial_mxc.h>
 #include <jffs2/load_kernel.h>
 #include <hwconfig.h>
 #include <i2c.h>
@@ -1820,3 +1821,11 @@ int ft_board_setup(void *blob, bd_t *bd)
 }
 #endif /* defined(CONFIG_OF_FLAT_TREE) && defined(CONFIG_OF_BOARD_SETUP) */
 
+static struct mxc_serial_platdata ventana_mxc_serial_plat = {
+       .reg = (struct mxc_uart *)UART2_BASE,
+};
+
+U_BOOT_DEVICE(ventana_serial) = {
+       .name   = "serial_mxc",
+       .platdata = &ventana_mxc_serial_plat,
+};
index 6ae24291c7f55f2d9d037b268834c9c71011e560..e841dd6de2cf4417421745d96d574492a991a659 100644 (file)
@@ -48,6 +48,7 @@
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_DM
 #define CONFIG_DM_GPIO
+#define CONFIG_DM_SERIAL
 #define CONFIG_CMD_DM
 #endif