diff options
author | Yuri Tikhonov <yur@emcraft.com> | 2008-09-04 11:19:05 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-06 01:24:55 +0200 |
commit | e90fb6afab2c0c074dfb67bacb4de179eb188a24 (patch) | |
tree | d0cb5743f747384543690ca93f2bbd2aeba99756 /drivers/usb/usb_ohci.h | |
parent | 5875d358f025c1b042d8a0f08384b756de7256c9 (diff) | |
download | u-boot-imx-e90fb6afab2c0c074dfb67bacb4de179eb188a24.zip u-boot-imx-e90fb6afab2c0c074dfb67bacb4de179eb188a24.tar.gz u-boot-imx-e90fb6afab2c0c074dfb67bacb4de179eb188a24.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/usb_ohci.h b/drivers/usb/usb_ohci.h index 380cb4c..7a04bf5 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 */ |