summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-02-07 18:24:39 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 17:23:50 +0800
commitdb7d3954b773a2b67e4211606551c06c7573df10 (patch)
treec4c817290e560cf2860a3134b185d6833a6487bf /include/configs
parentb6122733dee0d857565fecf251f68f050eea3cb9 (diff)
downloadu-boot-imx-db7d3954b773a2b67e4211606551c06c7573df10.zip
u-boot-imx-db7d3954b773a2b67e4211606551c06c7573df10.tar.gz
u-boot-imx-db7d3954b773a2b67e4211606551c06c7573df10.tar.bz2
MLK-14419-2 imx: mx7d_arm2: add 12x12 ddr3 arm2 board support
Add 12x12 ddr3 arm2 board support and convert it to use OF_CONTROL and DM drivers. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx7d_12x12_ddr3_arm2.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/configs/mx7d_12x12_ddr3_arm2.h b/include/configs/mx7d_12x12_ddr3_arm2.h
new file mode 100644
index 0000000..4596264
--- /dev/null
+++ b/include/configs/mx7d_12x12_ddr3_arm2.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP
+ *
+ * Configuration settings for the Freescale i.MX7D 12x12 DDR3 ARM2 board.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __MX7D_12X12_DDR3_ARM2_CONFIG_H
+#define __MX7D_12X12_DDR3_ARM2_CONFIG_H
+
+#define CONFIG_SYS_FSL_USDHC_NUM 2
+#define CONFIG_SYS_MMC_ENV_DEV 1 /* USDHC3 */
+#define CONFIG_SYS_MMC_ENV_PART 0 /* user area */
+#define CONFIG_MMCROOT "/dev/mmcblk1p2" /* USDHC3 */
+
+#define PHYS_SDRAM_SIZE SZ_1G
+
+#ifdef CONFIG_SPI_BOOT
+#define CONFIG_MXC_SPI
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+#else
+#define CONFIG_ENV_IS_IN_MMC
+#endif
+
+#ifdef CONFIG_MXC_SPI
+#define CONFIG_CMD_SF
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_ATMEL
+#define CONFIG_SF_DEFAULT_BUS 3
+#define CONFIG_SF_DEFAULT_SPEED 20000000
+#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0)
+#define CONFIG_SF_DEFAULT_CS 0
+#endif
+
+#include "mx7d_arm2.h"
+
+#endif