diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-02-23 14:03:16 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 14:04:39 +0800 |
commit | 42feba75854f3d086e211749f61f5a31a5f87b25 (patch) | |
tree | c2c0780215c1932fd07add03a38983e0e827f30e /board/freescale/mx6qarm2/mx6qarm2.c | |
parent | 22c734b8426c401892c08e3726b212a734529e15 (diff) | |
download | u-boot-imx-42feba75854f3d086e211749f61f5a31a5f87b25.zip u-boot-imx-42feba75854f3d086e211749f61f5a31a5f87b25.tar.gz u-boot-imx-42feba75854f3d086e211749f61f5a31a5f87b25.tar.bz2 |
MLK-12436-1: mx6qarm2: support i.MX6DQ PoP lpddr2 board
Add the support for i.MX6DQ PoP lpddr2 ARM2 board.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit e8777e91a239599ffd231ef56c60d49b68e5e3fc)
Diffstat (limited to 'board/freescale/mx6qarm2/mx6qarm2.c')
-rw-r--r-- | board/freescale/mx6qarm2/mx6qarm2.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c index 6c86f4d..db605c7 100644 --- a/board/freescale/mx6qarm2/mx6qarm2.c +++ b/board/freescale/mx6qarm2/mx6qarm2.c @@ -60,7 +60,11 @@ iomux_v3_cfg_t const usdhc3_pads[] = { MX6_PAD_SD3_DAT5__SD3_DATA5 | MUX_PAD_CTRL(USDHC_PAD_CTRL), MX6_PAD_SD3_DAT6__SD3_DATA6 | MUX_PAD_CTRL(USDHC_PAD_CTRL), MX6_PAD_SD3_DAT7__SD3_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL), +#ifdef CONFIG_MX6DQ_POP_LPDDR2 + MX6_PAD_GPIO_18__SD3_VSELECT | MUX_PAD_CTRL(USDHC_PAD_CTRL), +#else MX6_PAD_NANDF_CS0__GPIO6_IO11 | MUX_PAD_CTRL(NO_PAD_CTRL), /* CD */ +#endif }; iomux_v3_cfg_t const usdhc4_pads[] = { @@ -123,15 +127,16 @@ int mmc_map_to_kernel_blk(int devno) int board_mmc_getcd(struct mmc *mmc) { + int ret = 1; +#ifndef CONFIG_MX6DQ_POP_LPDDR2 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; - int ret; if (cfg->esdhc_base == USDHC3_BASE_ADDR) { gpio_direction_input(IMX_GPIO_NR(6, 11)); ret = !gpio_get_value(IMX_GPIO_NR(6, 11)); } else /* Don't have the CD GPIO pin on board */ ret = 1; - +#endif return ret; } |