summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/usb-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/usb-imx31.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c b/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
index a90384d35e..f12fd8f0b1 100644
--- a/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/usb-imx31.c
@@ -61,7 +61,7 @@ int usb_detect(void)
61/* Read the immediate state of the cable from the PMIC */ 61/* Read the immediate state of the cable from the PMIC */
62bool usb_plugged(void) 62bool usb_plugged(void)
63{ 63{
64 return mc13783_read(MC13783_INTERRUPT_SENSE0) & MC13783_USB4V4; 64 return mc13783_read(MC13783_INTERRUPT_SENSE0) & MC13783_USB4V4S;
65} 65}
66 66
67void usb_init_device(void) 67void usb_init_device(void)
@@ -73,7 +73,7 @@ void usb_init_device(void)
73 /* Module will be turned off later after firmware init */ 73 /* Module will be turned off later after firmware init */
74 usb_drv_startup(); 74 usb_drv_startup();
75 75
76 mc13783_clear(MC13783_INTERRUPT_MASK0, MC13783_USB4V4); 76 mc13783_clear(MC13783_INTERRUPT_MASK0, MC13783_USB4V4M);
77} 77}
78 78
79void usb_enable(bool on) 79void usb_enable(bool on)