From 3f0e935f2250110990875159552e1ff7eb7da39d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 1 Oct 2014 19:57:28 -0600 Subject: dm: imx: Move cm_fx6 to use driver model for serial and GPIO Now that serial and GPIO are available for iMX.6, move cm_fx6 over as an example. Acked-by: Igor Grinberg Signed-off-by: Simon Glass Acked-by: Nikita Kiryanov --- board/compulab/cm_fx6/cm_fx6.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'board/compulab/cm_fx6') diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index f0edc8f9f0..f77ff48a1c 100644 --- a/board/compulab/cm_fx6/cm_fx6.c +++ b/board/compulab/cm_fx6/cm_fx6.c @@ -9,11 +9,13 @@ */ #include +#include #include #include #include #include #include +#include #include #include #include @@ -564,3 +566,11 @@ u32 get_board_rev(void) return cl_eeprom_get_board_rev(); } +static struct mxc_serial_platdata cm_fx6_mxc_serial_plat = { + .reg = (struct mxc_uart *)UART4_BASE, +}; + +U_BOOT_DEVICE(cm_fx6_serial) = { + .name = "serial_mxc", + .platdata = &cm_fx6_mxc_serial_plat, +}; -- cgit v1.2.3