summaryrefslogtreecommitdiff
path: root/drivers/usb/usb_ohci.h
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@emcraft.com>2008-09-04 11:19:05 +0200
committerWolfgang Denk <wd@denx.de>2008-09-06 01:24:55 +0200
commite90fb6afab2c0c074dfb67bacb4de179eb188a24 (patch)
treed0cb5743f747384543690ca93f2bbd2aeba99756 /drivers/usb/usb_ohci.h
parent5875d358f025c1b042d8a0f08384b756de7256c9 (diff)
USB EHCI: reset root hub
Some of multi-function USB controllers (e.g. ISP1562) allow root hub resetting only via EHCI registers. So, this patch adds the corresponding kind of reset to OHCI's hc_reset() if the newly introduced CONFIG_PCI_EHCI_DEVNO option is set (e.g. for Socrates board). Signed-off-by: Yuri Tikhonov <yur@emcraft.com> Acked-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'drivers/usb/usb_ohci.h')
-rw-r--r--drivers/usb/usb_ohci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/usb_ohci.h b/drivers/usb/usb_ohci.h
index 380cb4c92..7a04bf5e8 100644
--- a/drivers/usb/usb_ohci.h
+++ b/drivers/usb/usb_ohci.h
@@ -195,6 +195,9 @@ struct ohci_regs {
} roothub;
} __attribute((aligned(32)));
+/* Some EHCI controls */
+#define EHCI_USBCMD_OFF 0x20
+#define EHCI_USBCMD_HCRESET (1 << 1)
/* OHCI CONTROL AND STATUS REGISTER MASKS */