Browse Source

MLK-13440-2 mx6sllevk: 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>
imx_v2016.03_4.1.30_7ulp_alpha
Ye Li 4 years ago
parent
commit
03b2d94b92
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      board/freescale/mx6sllevk/mx6sllevk.c

+ 2
- 6
board/freescale/mx6sllevk/mx6sllevk.c View File

@ -170,7 +170,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},
};
@ -210,7 +210,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:
@ -230,10 +230,6 @@ int board_mmc_init(bd_t *bis)
case 1:
imx_iomux_v3_setup_multiple_pads(
usdhc2_pads, ARRAY_SIZE(usdhc2_pads));
/* 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));
usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK);
gpio_direction_output(USDHC2_PWR_GPIO, 1);
break;


Loading…
Cancel
Save