From: Tim Harvey Date: Fri, 8 May 2015 18:28:29 -0700 Subject: [U-Boot] [PATCH 06/19] imx: ventana: enable DM_SERIAL In-Reply-To: <1431134922-2535-1-git-send-email-tharvey@gateworks.com> References: <1431134922-2535-1-git-send-email-tharvey@gateworks.com> Message-ID: <1431134922-2535-7-git-send-email-tharvey@gateworks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de mxc_serial supports DM so lets use it. Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/gw_ventana.c | 9 +++++++++ include/configs/gw_ventana.h | 1 + 2 files changed, 10 insertions(+) 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 #include #include +#include #include #include #include @@ -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, +}; diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 20bc4dc..ea1848a 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -49,6 +49,7 @@ #ifndef CONFIG_SPL_BUILD #define CONFIG_DM #define CONFIG_DM_GPIO +#define CONFIG_DM_SERIAL #define CONFIG_CMD_DM #endif -- 1.9.1