Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72d16986 authored by Srinivas Ganji's avatar Srinivas Ganji
Browse files

mmc: sdhci-msm: Enable EMMC_BOOT_SELECT bit



To operate eMMC in 8 bit mode, need to route the
DATA LINES 4 to 7 (the GPIO lines from 92 to 95) to eMMC.

To route these data lines to eMMC, need to select the
EMMC_BOOT_SELECT bit in TLMM_EBI2_EMMC_GPIO_CFG
register (along with EBI2_BOOT_SELECT bit). Otherwise,
the eMMC will not work in 8 bit mode. If selected only eMMC
boot bit, then the device will not boot from NAND.

Change-Id: Ia6862a1d30b1e984facc1ef4a791b05c1941513e
Signed-off-by: default avatarSrinivas Ganji <sringanj@codeaurora.org>
parent 544f874d
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -4714,7 +4714,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
	struct sdhci_pltfm_host *pltfm_host;
	struct sdhci_msm_host *msm_host;
	struct resource *core_memres = NULL;
	int ret = 0, dead = 0;
	int ret = 0, dead = 0, tlmm_cfg = 0;
	u16 host_version;
	u32 irq_status, irq_ctl;
	struct resource *tlmm_memres = NULL;
@@ -4954,7 +4954,15 @@ static int sdhci_msm_probe(struct platform_device *pdev)
			ret = -ENOMEM;
			goto vreg_deinit;
		}

		ret = of_property_read_u32(pdev->dev.of_node,
					   "tlmm_cfg",
					   &tlmm_cfg);
		if (ret)
			writel_relaxed(readl_relaxed(tlmm_mem) | 0x2, tlmm_mem);
		else
			writel_relaxed(readl_relaxed(tlmm_mem) | tlmm_cfg,
						 tlmm_mem);
	}

	/*