aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mvebu/patches/130-mmc-xenon_sdhci-Add-missing-common-host-capabilities.patch
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2019-11-02 13:14:08 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2020-09-18 21:42:05 +0200
commit72bb66caad5ac79294c92cb1ca115942b59080e1 (patch)
treeaf0ade5dfdaa9d53a69b082e00243bfc1dfde3ee /package/boot/uboot-mvebu/patches/130-mmc-xenon_sdhci-Add-missing-common-host-capabilities.patch
parentae2e521b34ca3504e7f32898dcd7e1c71707d206 (diff)
downloadupstream-72bb66caad5ac79294c92cb1ca115942b59080e1.tar.gz
upstream-72bb66caad5ac79294c92cb1ca115942b59080e1.tar.bz2
upstream-72bb66caad5ac79294c92cb1ca115942b59080e1.zip
uboot-mvebu: add support for espressobin
This builds two u-boot binaries: one for boards without eMMC and one with. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'package/boot/uboot-mvebu/patches/130-mmc-xenon_sdhci-Add-missing-common-host-capabilities.patch')
-rw-r--r--package/boot/uboot-mvebu/patches/130-mmc-xenon_sdhci-Add-missing-common-host-capabilities.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/boot/uboot-mvebu/patches/130-mmc-xenon_sdhci-Add-missing-common-host-capabilities.patch b/package/boot/uboot-mvebu/patches/130-mmc-xenon_sdhci-Add-missing-common-host-capabilities.patch
new file mode 100644
index 0000000000..fa41f01526
--- /dev/null
+++ b/package/boot/uboot-mvebu/patches/130-mmc-xenon_sdhci-Add-missing-common-host-capabilities.patch
@@ -0,0 +1,43 @@
+From 264c45575ec6a3d507dc4e43954b8a78283aca6c Mon Sep 17 00:00:00 2001
+From: Andre Heider <a.heider@gmail.com>
+Date: Thu, 10 Sep 2020 17:58:43 +0200
+Subject: [PATCH] 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: Andre Heider <a.heider@gmail.com>
+---
+ drivers/mmc/xenon_sdhci.c | 18 ++++--------------
+ 1 file changed, 4 insertions(+), 14 deletions(-)
+
+--- a/drivers/mmc/xenon_sdhci.c
++++ b/drivers/mmc/xenon_sdhci.c
+@@ -485,20 +485,10 @@ static int xenon_sdhci_probe(struct udev
+ armada_3700_soc_pad_voltage_set(host);
+
+ 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;
+- break;
+- case 4:
+- host->host_caps |= MMC_MODE_4BIT;
+- break;
+- case 1:
+- break;
+- default:
+- printf("Invalid \"bus-width\" value\n");
+- return -EINVAL;
+- }
++
++ ret = mmc_of_parse(dev, &plat->cfg);
++ if (ret)
++ return ret;
+
+ host->ops = &xenon_sdhci_ops;
+