|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
#include <common.h>
|
|
#include <common.h>
|
|
#include <clk.h>
|
|
#include <clk.h>
|
|
|
|
+#include <asm/io.h>
|
|
#include <dm.h>
|
|
#include <dm.h>
|
|
#include "ehci.h"
|
|
#include "ehci.h"
|
|
|
|
|
|
@@ -20,7 +21,7 @@ struct generic_ehci {
|
|
|
|
|
|
static int ehci_usb_probe(struct udevice *dev)
|
|
static int ehci_usb_probe(struct udevice *dev)
|
|
{
|
|
{
|
|
- struct ehci_hccr *hccr = (struct ehci_hccr *)dev_get_addr(dev);
|
|
|
|
|
|
+ struct ehci_hccr *hccr;
|
|
struct ehci_hcor *hcor;
|
|
struct ehci_hcor *hcor;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
@@ -36,6 +37,7 @@ static int ehci_usb_probe(struct udevice *dev)
|
|
clk_dev->name, clk_id);
|
|
clk_dev->name, clk_id);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ hccr = map_physmem(dev_get_addr(dev), 0x100, MAP_NOCACHE);
|
|
hcor = (struct ehci_hcor *)((uintptr_t)hccr +
|
|
hcor = (struct ehci_hcor *)((uintptr_t)hccr +
|
|
HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
|
|
HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
|
|
|
|
|