rockchip: sdhci: update reg map for of-platdata
authorKever Yang <kever.yang@rock-chips.com>
Thu, 7 Sep 2017 03:20:50 +0000 (11:20 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 18 Sep 2017 18:40:38 +0000 (20:40 +0200)
After Simon's patch, the dtoc can work with 64bit address,
so we need to fix reg number for it.
Depend on Simon's patch set:
https://patchwork.ozlabs.org/cover/807266/

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/mmc/rockchip_sdhci.c

index 346a42c664a8b3e77eb5539e0b37370283c21569..0f31dfc3fd16dc599c3024a605af4b875fa47e1e 100644 (file)
@@ -45,7 +45,7 @@ static int arasan_sdhci_probe(struct udevice *dev)
        struct dtd_rockchip_rk3399_sdhci_5_1 *dtplat = &plat->dtplat;
 
        host->name = dev->name;
-       host->ioaddr = map_sysmem(dtplat->reg[1], dtplat->reg[3]);
+       host->ioaddr = map_sysmem(dtplat->reg[0], dtplat->reg[1]);
        max_frequency = dtplat->max_frequency;
        ret = clk_get_by_index_platdata(dev, 0, dtplat->clocks, &clk);
 #else