diff options
author | Tim Harvey <tharvey@gateworks.com> | 2015-05-08 18:28:29 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-05-15 19:21:25 +0200 |
commit | d41c8c8ece89132220dc1f60d92c3b8158f1575f (patch) | |
tree | b4725835b746225a61f015c50807535a1e750313 /board/gateworks | |
parent | def6031533cd5c03ccf5a6235f967d4dd549bcd8 (diff) | |
download | u-boot-imx-d41c8c8ece89132220dc1f60d92c3b8158f1575f.zip u-boot-imx-d41c8c8ece89132220dc1f60d92c3b8158f1575f.tar.gz u-boot-imx-d41c8c8ece89132220dc1f60d92c3b8158f1575f.tar.bz2 |
imx: ventana: enable DM_SERIAL
mxc_serial supports DM so lets use it.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks')
-rw-r--r-- | board/gateworks/gw_ventana/gw_ventana.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index 8818be4..554cd84 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c +++ b/board/gateworks/gw_ventana/gw_ventana.c @@ -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, +}; |