Skip to content
Snippets Groups Projects
Commit 327b2b35 authored by Philipp Tomsich's avatar Philipp Tomsich
Browse files

rockchip: sdhci: Convert to livetree


Update the Rockchip SDHCI wrapper to support a live device tree.

Signed-off-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>

Version-changes: 2
- use the dev_read_addr_ptr function in	rockchip_sdhci.c
parent d27c2739
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include <common.h> #include <common.h>
#include <dm.h> #include <dm.h>
#include <dt-structs.h> #include <dt-structs.h>
#include <fdtdec.h>
#include <libfdt.h> #include <libfdt.h>
#include <malloc.h> #include <malloc.h>
#include <mapmem.h> #include <mapmem.h>
...@@ -82,7 +81,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev) ...@@ -82,7 +81,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
struct sdhci_host *host = dev_get_priv(dev); struct sdhci_host *host = dev_get_priv(dev);
host->name = dev->name; host->name = dev->name;
host->ioaddr = devfdt_get_addr_ptr(dev); host->ioaddr = dev_read_addr_ptr(dev);
#endif #endif
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment