summaryrefslogtreecommitdiffstats
path: root/include/configs/cm_fx6.h
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 /include/configs/cm_fx6.h
parenta8ba569cba1e79f97438c1643ddc08f3ca7bffef (diff)
downloadtalos-obmc-uboot-3f0e935f2250110990875159552e1ff7eb7da39d.tar.gz
talos-obmc-uboot-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 'include/configs/cm_fx6.h')
-rw-r--r--include/configs/cm_fx6.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h
index 7cf241e31d..a20c373321 100644
--- a/include/configs/cm_fx6.h
+++ b/include/configs/cm_fx6.h
@@ -21,6 +21,17 @@
#define CONFIG_MACH_TYPE 4273
#define CONFIG_SYS_HZ 1000
+#ifndef CONFIG_SPL_BUILD
+#define CONFIG_DM
+#define CONFIG_CMD_DM
+
+#define CONFIG_DM_GPIO
+#define CONFIG_CMD_GPIO
+
+#define CONFIG_DM_SERIAL
+#define CONFIG_SYS_MALLOC_F_LEN (1 << 10)
+#endif
+
/* Display information on boot */
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
OpenPOWER on IntegriCloud