summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-11-08 10:39:33 +0800
committerRobby Cai <robby.cai@nxp.com>2016-11-16 17:00:24 +0800
commit85ac1b4aa6bbbd4a13347f3ce7eedd5363390314 (patch)
tree771f9063ace0d3c0e5e0b38cd643a28eb1bdc31b
parent131206c8a1a0ea587425d433151781183ecb3c3d (diff)
downloadu-boot-imx-85ac1b4aa6bbbd4a13347f3ce7eedd5363390314.zip
u-boot-imx-85ac1b4aa6bbbd4a13347f3ce7eedd5363390314.tar.gz
u-boot-imx-85ac1b4aa6bbbd4a13347f3ce7eedd5363390314.tar.bz2
MLK-13440-3 mx6sll_arm2: Update USDHC2 parameter for using 1.8V I/O
Set the vs18_enable field to 1 for USDHC2 controller which connects to eMMC. Also remove the explicit USDCH2 vendorspec register settings in board codes, since the driver will take charge of it. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0c56b6814333f2ac1c2462d8a1aed8df07ad403d)
-rw-r--r--board/freescale/mx6sll_arm2/mx6sll_arm2.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/board/freescale/mx6sll_arm2/mx6sll_arm2.c b/board/freescale/mx6sll_arm2/mx6sll_arm2.c
index 9094586..a07e147 100644
--- a/board/freescale/mx6sll_arm2/mx6sll_arm2.c
+++ b/board/freescale/mx6sll_arm2/mx6sll_arm2.c
@@ -180,7 +180,7 @@ static void setup_iomux_uart(void)
#ifdef CONFIG_FSL_ESDHC
static struct fsl_esdhc_cfg usdhc_cfg[CONFIG_SYS_FSL_USDHC_NUM] = {
{USDHC1_BASE_ADDR, 0, 8, 1},
- {USDHC2_BASE_ADDR, 0, 8},
+ {USDHC2_BASE_ADDR, 0, 8, 0, 1}, /* fixed 1.8v IO voltage for eMMC chip */
{USDHC3_BASE_ADDR, 0, 4},
};
@@ -220,7 +220,7 @@ int board_mmc_getcd(struct mmc *mmc)
int board_mmc_init(bd_t *bis)
{
- int i, ret;
+ int i;
/*
* According to the board_mmc_init() the following map is done:
@@ -241,10 +241,6 @@ int board_mmc_init(bd_t *bis)
imx_iomux_v3_setup_multiple_pads(
usdhc2_pads, ARRAY_SIZE(usdhc2_pads));
usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK);
- /* eMMC connect to 1.8v, so need to set eMMC I/O voltage to 1.8v */
- ret = readl(usdhc_cfg[1].esdhc_base + 0xc0); /* vend_spec */
- ret |= 0x2;
- writel(ret, (usdhc_cfg[1].esdhc_base + 0xc0));
gpio_direction_output(USDHC2_PWR_GPIO, 1);
break;
case 2: