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>
This commit is contained in:
committed by
Marek Vasut
parent
ea7fad9101
commit
32c8eee37f
@@ -6,8 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <fdtdec.h>
|
|
||||||
#include <libfdt.h>
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
#include <watchdog.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
|
* 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) {
|
if (plat->hcd_base == FDT_ADDR_T_NONE) {
|
||||||
error("Can't get the XHCI register base address\n");
|
error("Can't get the XHCI register base address\n");
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
|
|||||||
Reference in New Issue
Block a user