diff options
author | Markus Klotzbücher <mk@denx.de> | 2008-04-23 10:57:33 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-24 13:34:35 +0200 |
commit | 83fe32334337def160b302aa9d152d808bfcc68e (patch) | |
tree | 161b4935cc7139974438fde6c5b3c72b24a3197e /drivers | |
parent | f957576cb53e6cfab412709cfc8db1afd39d21c3 (diff) | |
download | u-boot-imx-83fe32334337def160b302aa9d152d808bfcc68e.zip u-boot-imx-83fe32334337def160b302aa9d152d808bfcc68e.tar.gz u-boot-imx-83fe32334337def160b302aa9d152d808bfcc68e.tar.bz2 |
USB: remove a cpu bug workaround for an unsupported architecture.
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/usb_ohci.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c index d37a037..ee0f2e4 100644 --- a/drivers/usb/usb_ohci.c +++ b/drivers/usb/usb_ohci.c @@ -138,28 +138,14 @@ int got_rhsc; /* device which was disconnected */ struct usb_device *devgone; -/*-------------------------------------------------------------------------*/ - -/* AMD-756 (D2 rev) reports corrupt register contents in some cases. - * The erratum (#4) description is incorrect. AMD's workaround waits - * till some bits (mostly reserved) are clear; ok for all revs. - */ -#define OHCI_QUIRK_AMD756 0xabcd -#define read_roothub(hc, register, mask) ({ \ - u32 temp = readl (&hc->regs->roothub.register); \ - if (hc->flags & OHCI_QUIRK_AMD756) \ - while (temp & mask) \ - temp = readl (&hc->regs->roothub.register); \ - temp; }) - -static u32 roothub_a (struct ohci *hc) - { return read_roothub (hc, a, 0xfc0fe000); } +static inline u32 roothub_a (struct ohci *hc) + { return readl (&hc->regs->roothub.a); } static inline u32 roothub_b (struct ohci *hc) { return readl (&hc->regs->roothub.b); } static inline u32 roothub_status (struct ohci *hc) { return readl (&hc->regs->roothub.status); } -static u32 roothub_portstatus (struct ohci *hc, int i) - { return read_roothub (hc, portstatus [i], 0xffe0fce0); } +static inline u32 roothub_portstatus (struct ohci *hc, int i) + { return readl (&hc->regs->roothub.portstatus[i]); } /* forward declaration */ static int hc_interrupt (void); |