]> git.sur5r.net Git - u-boot/commitdiff
rockchip: xhci: Convert to livetree
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 12 Sep 2017 15:32:25 +0000 (17:32 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 27 Sep 2017 10:12:22 +0000 (12:12 +0200)
Update the Rockchip xhci wrapper driver to support a live device tree.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/usb/host/xhci-rockchip.c

index ec55f4e59f75c95d12c2fedafdab64aa068c4726..ca3abffba072834aa816ab79dcc226116790d408 100644 (file)
@@ -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;