diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-11 21:05:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-25 11:52:05 +0200 |
commit | ff3c9fa7fb0bcc39e3608b5251decdc5984f3e95 (patch) | |
tree | a6739791c65cebdf47a389400e1f2030207230b1 /drivers/usb/host/ehci-hcd.c | |
parent | fa65404a58c474c2a55b4033d58ae47f84d92631 (diff) | |
download | barebox-ff3c9fa7fb0bcc39e3608b5251decdc5984f3e95.tar.gz barebox-ff3c9fa7fb0bcc39e3608b5251decdc5984f3e95.tar.xz |
ARM: i.MX51 efikasb: Switch to devicetree probing
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 161785a8b2..7297e4861e 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -27,6 +27,7 @@ #include <xfuncs.h> #include <clock.h> #include <errno.h> +#include <of.h> #include <usb/ehci.h> #include <asm/mmu.h> @@ -439,10 +440,13 @@ static inline int min3(int a, int b, int c) * boards. * See http://lists.infradead.org/pipermail/linux-arm-kernel/2011-January/037341.html */ -void ehci_powerup_fixup(struct ehci_priv *ehci) +static void ehci_powerup_fixup(struct ehci_priv *ehci) { void *viewport = (void *)ehci->hcor + 0x30; + if (!of_machine_is_compatible("genesi,imx51-sb")) + return; + ulpi_write(ULPI_OTG_CHRG_VBUS, ULPI_OTGCTL + ULPI_REG_SET, viewport); } |