Commit e79c59c0 authored by Andre Heider's avatar Andre Heider Committed by Peng Fan

mmc: xenon_sdhci: Add missing common host capabilities

Use mmc_of_parse() to set the common host properties. That includes
"bus-width", so parsing it can be removed from the driver.

But more importantly, "non-removable" is now respected, which fixes
the usage of eMMC.
Signed-off-by: default avatarAndre Heider <>
Reviewed-by: default avatarKonstantin Porotchkin <>
Tested-by: default avatarMarek Behún <>
parent 85051474
......@@ -485,20 +485,10 @@ static int xenon_sdhci_probe(struct udevice *dev)
host->host_caps = MMC_MODE_HS | MMC_MODE_HS_52MHz | MMC_MODE_DDR_52MHz;
switch (fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "bus-width",
1)) {
case 8:
host->host_caps |= MMC_MODE_8BIT;
case 4:
host->host_caps |= MMC_MODE_4BIT;
case 1:
printf("Invalid \"bus-width\" value\n");
return -EINVAL;
ret = mmc_of_parse(dev, &plat->cfg);
if (ret)
return ret;
host->ops = &xenon_sdhci_ops;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment