summaryrefslogtreecommitdiff
path: root/board/freescale/imx8mm_evk/imx8mm_evk.c
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-08-27 06:26:08 +0000
committerStefano Babic <sbabic@denx.de>2019-10-08 16:36:36 +0200
commit9b15ce91939d6469dda92eb297b44fa87572629a (patch)
treed74e211093dab4a76db7cb3a819308a2c9d883bf /board/freescale/imx8mm_evk/imx8mm_evk.c
parentd68d73df177ce948b77296afcf322226f9c2f725 (diff)
imx: Add i.MX8MM EVK board support.
Add board and SoC dts Add ddr training code support SD/MMC/GPIO/PINCTRL/UART Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board/freescale/imx8mm_evk/imx8mm_evk.c')
-rw-r--r--board/freescale/imx8mm_evk/imx8mm_evk.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c
new file mode 100644
index 0000000000..3706e1ec55
--- /dev/null
+++ b/board/freescale/imx8mm_evk/imx8mm_evk.c
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2018 NXP
+ */
+
+#include <common.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int dram_init(void)
+{
+ gd->ram_size = PHYS_SDRAM_SIZE;
+
+ return 0;
+}
+
+int board_init(void)
+{
+ return 0;
+}
+
+int board_late_init(void)
+{
+#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
+ env_set("board_name", "EVK");
+ env_set("board_rev", "iMX8MM");
+#endif
+ return 0;
+}