imx: ventana: enable DM_SERIAL

mxc_serial supports DM so lets use it.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
Tim Harvey 2015-05-08 18:28:29 -07:00 committed by Stefano Babic
parent def6031533
commit d41c8c8ece
2 changed files with 10 additions and 0 deletions

View 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,
};

View File

@ -49,6 +49,7 @@
#ifndef CONFIG_SPL_BUILD
#define CONFIG_DM
#define CONFIG_DM_GPIO
#define CONFIG_DM_SERIAL
#define CONFIG_CMD_DM
#endif