mmc: rk_sdmmc: close FJTAG when drv probe
authorlintao <lintao@rock-chips.com>
Mon, 23 Mar 2015 01:53:48 +0000 (09:53 +0800)
committerlintao <lintao@rock-chips.com>
Mon, 23 Mar 2015 01:54:24 +0000 (09:54 +0800)
Signed-off-by: lintao <lintao@rock-chips.com>
drivers/mmc/host/rk_sdmmc.c

index ae0a86ccdec8fe849b8c414e5f277a7413f26c50..9d254bd82bb5ac3d36e0c46074103e825e828da6 100755 (executable)
@@ -3488,8 +3488,11 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
                else
                        /* Disable force_jtag */
                        regmap_write(host->grf, 0x43c, (1<<13)<<16 | (0 << 13));
+       } else if (cpu_is_rk3288()) {
+               grf_writel(((1 << 12) << 16) | (0 << 12), RK3288_GRF_SOC_CON0);
        }
 
+
         /* We assume only low-level chip use gpio_cd */
         if ((soc_is_rk3126() || soc_is_rk3126b() || soc_is_rk3036()) &&
                 (host->mmc->restrict_caps & RESTRICT_CARD_TYPE_SD)) {