summaryrefslogtreecommitdiff
path: root/firmware/target/arm/usb-fw-pp502x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/usb-fw-pp502x.c')
-rw-r--r--firmware/target/arm/usb-fw-pp502x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c
index 792a1b0131..7d197f03b8 100644
--- a/firmware/target/arm/usb-fw-pp502x.c
+++ b/firmware/target/arm/usb-fw-pp502x.c
@@ -44,7 +44,7 @@ void usb_init_device(void)
44 DEV_RS |= DEV_USB; /* reset usb start */ 44 DEV_RS |= DEV_USB; /* reset usb start */
45 DEV_RS &=~DEV_USB;/* reset usb end */ 45 DEV_RS &=~DEV_USB;/* reset usb end */
46 46
47 DEV_INIT |= INIT_USB; 47 DEV_INIT2 |= INIT_USB;
48 while ((inl(0x70000028) & 0x80) == 0); 48 while ((inl(0x70000028) & 0x80) == 0);
49 49
50 UDC_PORTSC1 |= PORTSCX_PORT_RESET; 50 UDC_PORTSC1 |= PORTSCX_PORT_RESET;
@@ -70,7 +70,7 @@ void usb_init_device(void)
70 70
71 /* Note from IPL source (referring to next 5 lines of code: 71 /* Note from IPL source (referring to next 5 lines of code:
72 THIS NEEDS TO BE CHANGED ONCE THERE IS KERNEL USB */ 72 THIS NEEDS TO BE CHANGED ONCE THERE IS KERNEL USB */
73 DEV_INIT |= INIT_USB; 73 DEV_INIT2 |= INIT_USB;
74 DEV_EN |= DEV_USB; 74 DEV_EN |= DEV_USB;
75 while ((inl(0x70000028) & 0x80) == 0); 75 while ((inl(0x70000028) & 0x80) == 0);
76 outl(inl(0x70000028) | 0x2, 0x70000028); 76 outl(inl(0x70000028) | 0x2, 0x70000028);