summaryrefslogtreecommitdiff
path: root/board/compulab/cm_fx6
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-01 19:57:28 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:56 -0600
commit3f0e935f2250110990875159552e1ff7eb7da39d (patch)
treeac8805348e4d967d0a700aa7e486e70e2ff6ab87 /board/compulab/cm_fx6
parenta8ba569cba1e79f97438c1643ddc08f3ca7bffef (diff)
downloadu-boot-3f0e935f2250110990875159552e1ff7eb7da39d.tar.gz
u-boot-3f0e935f2250110990875159552e1ff7eb7da39d.tar.bz2
u-boot-3f0e935f2250110990875159552e1ff7eb7da39d.zip
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 <grinberg@compulab.co.il> Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Nikita Kiryanov <nikita@compulab.co.il>
Diffstat (limited to 'board/compulab/cm_fx6')
-rw-r--r--board/compulab/cm_fx6/cm_fx6.c10
1 files changed, 10 insertions, 0 deletions
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 <common.h>
+#include <dm.h>
#include <fsl_esdhc.h>
#include <miiphy.h>
#include <netdev.h>
#include <fdt_support.h>
#include <sata.h>
+#include <serial_mxc.h>
#include <asm/arch/crm_regs.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/iomux.h>
@@ -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,
+};