diff options
Diffstat (limited to 'firmware/target/arm/imx233/usb-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/usb-imx233.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/firmware/target/arm/imx233/usb-imx233.c b/firmware/target/arm/imx233/usb-imx233.c index 91fb770190..8aaa90c46b 100644 --- a/firmware/target/arm/imx233/usb-imx233.c +++ b/firmware/target/arm/imx233/usb-imx233.c | |||
@@ -68,12 +68,7 @@ void usb_init_device(void) | |||
68 | 68 | ||
69 | int usb_detect(void) | 69 | int usb_detect(void) |
70 | { | 70 | { |
71 | return usb_plugged() ? USB_INSERTED : USB_EXTRACTED; | 71 | return (HW_POWER_STS & HW_POWER_STS__VBUSVALID) ? USB_INSERTED : USB_EXTRACTED; |
72 | } | ||
73 | |||
74 | bool usb_plugged(void) | ||
75 | { | ||
76 | return !!(HW_POWER_STS & HW_POWER_STS__VBUSVALID); | ||
77 | } | 72 | } |
78 | 73 | ||
79 | void usb_enable(bool on) | 74 | void usb_enable(bool on) |