diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/usb-drv-arc.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-drv-arc.c b/firmware/target/arm/usb-drv-arc.c index af97e3e174..aafdbd1f2a 100644 --- a/firmware/target/arm/usb-drv-arc.c +++ b/firmware/target/arm/usb-drv-arc.c @@ -410,7 +410,7 @@ void usb_drv_reset(void) udelay(10); outl(inl(0x70000028) | 0x800, 0x70000028); outl(inl(0x70000028) & ~0x800, 0x70000028); - while (inl(0x70000028) & 0x80); + while ((inl(0x70000028) & 0x80) == 0); #endif } diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index cf5a82f37c..82be770889 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c @@ -106,6 +106,7 @@ void usb_init_device(void) while ((inl(0x70000028) & 0x80) == 0); outl(inl(0x70000028) | 0x2, 0x70000028); udelay(100000); + XMB_RAM_CFG |= 0x47A; /* Do one-time inits */ usb_drv_startup(); |