UPSTREAM: rockchip: mmc: convert to livetree
Update the Rockchip-specific wrapper for the Designware driver to support a live device tree. Change-Id: I114c6c49907f0c40de0e3d4a6249684a2986329a Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit be5f04e850e89639ffe7ec4d2dccd327eb354cde)
This commit is contained in:
parent
8fb9fe4d88
commit
1c23e4e1eb
|
|
@ -66,7 +66,7 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev)
|
||||||
struct dwmci_host *host = &priv->host;
|
struct dwmci_host *host = &priv->host;
|
||||||
|
|
||||||
host->name = dev->name;
|
host->name = dev->name;
|
||||||
host->ioaddr = (void *)devfdt_get_addr(dev);
|
host->ioaddr = dev_read_addr_ptr(dev);
|
||||||
host->buswidth = dev_read_u32_default(dev, "bus-width", 4);
|
host->buswidth = dev_read_u32_default(dev, "bus-width", 4);
|
||||||
host->get_mmc_clk = rockchip_dwmmc_get_mmc_clk;
|
host->get_mmc_clk = rockchip_dwmmc_get_mmc_clk;
|
||||||
host->priv = dev;
|
host->priv = dev;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue