aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-rockchip.c
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-09-12 17:32:25 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2017-09-27 12:12:22 +0200
commit32c8eee37fcb88d372410952d3ab88bcf5fdf7e7 (patch)
treecea7e54d4eda480868e5414380a80ed34b16daa4 /drivers/usb/host/xhci-rockchip.c
parentea7fad91019654fb21e6cd04f963e0482869dba5 (diff)
downloadu-boot-32c8eee37fcb88d372410952d3ab88bcf5fdf7e7.zip
u-boot-32c8eee37fcb88d372410952d3ab88bcf5fdf7e7.tar.gz
u-boot-32c8eee37fcb88d372410952d3ab88bcf5fdf7e7.tar.bz2
rockchip: xhci: Convert to livetree
Update the Rockchip xhci wrapper driver to support a live device tree. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'drivers/usb/host/xhci-rockchip.c')
-rw-r--r--drivers/usb/host/xhci-rockchip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-rockchip.c b/drivers/usb/host/xhci-rockchip.c
index ec55f4e..ca3abff 100644
--- a/drivers/usb/host/xhci-rockchip.c
+++ b/drivers/usb/host/xhci-rockchip.c
@@ -6,8 +6,6 @@
*/
#include <common.h>
#include <dm.h>
-#include <fdtdec.h>
-#include <libfdt.h>
#include <malloc.h>
#include <usb.h>
#include <watchdog.h>
@@ -46,7 +44,7 @@ static int xhci_usb_ofdata_to_platdata(struct udevice *dev)
/*
* Get the base address for XHCI controller from the device node
*/
- plat->hcd_base = devfdt_get_addr(dev);
+ plat->hcd_base = dev_read_addr(dev);
if (plat->hcd_base == FDT_ADDR_T_NONE) {
error("Can't get the XHCI register base address\n");
return -ENXIO;