summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2016-08-18 11:08:44 -0600
committerTom Warren <twarren@nvidia.com>2016-08-25 13:47:49 -0700
commiteb3f68afbc8b8b2bdb491f61c342aabb776c8321 (patch)
tree4e9595d2145ac9c5d6ac68e770ab934c4eeb0a5a /drivers
parentb4ee081e5a4f8d7a2712ddbd075dde203d559c15 (diff)
downloadu-boot-imx-eb3f68afbc8b8b2bdb491f61c342aabb776c8321.zip
u-boot-imx-eb3f68afbc8b8b2bdb491f61c342aabb776c8321.tar.gz
u-boot-imx-eb3f68afbc8b8b2bdb491f61c342aabb776c8321.tar.bz2
ARM: tegra: fix Tegra186 SDHCI clock/reset names
The Tegra SDHCI binding dictates that the reseet name for the Tegra SDHCI clock be "sdhci" not "sdmmc", and that the clock is accessed by index rather than by name. Fix the Tegra186 DT and MMC driver to honor this. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/tegra_mmc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c
index f0a39a6..3d0845e 100644
--- a/drivers/mmc/tegra_mmc.c
+++ b/drivers/mmc/tegra_mmc.c
@@ -648,12 +648,12 @@ static int mmc_get_config(const void *blob, int node, struct mmc_host *host,
struct udevice dev;
int ret;
dev.of_offset = node;
- ret = reset_get_by_name(&dev, "sdmmc", &host->reset_ctl);
+ ret = reset_get_by_name(&dev, "sdhci", &host->reset_ctl);
if (ret) {
- debug("reset_get_by_index() failed: %d\n", ret);
+ debug("reset_get_by_name() failed: %d\n", ret);
return ret;
}
- ret = clk_get_by_name(&dev, "sdmmc", &host->clk);
+ ret = clk_get_by_index(&dev, 0, &host->clk);
if (ret) {
debug("clk_get_by_index() failed: %d\n", ret);
return ret;