summaryrefslogtreecommitdiff
path: root/chip/stm32/usb_dwc_hw.h
Commit message (Collapse)AuthorAgeFilesLines
* chip/stm32/usb: Replace reset handler by generic event handlerNicolas Boichat2017-08-161-5/+16
| | | | | | | | | | | | | | | | | | | Some USB interface handlers need to know when USB has been successfully resumed after a wake event. For example, this is useful so that HID keyboard can send the events at the right time. BRANCH=none BUG=b:35775048 TEST=Using USB HID keyboard patches to queue keys in a FIFO: After USB autosuspends, press a single key and hold it. Without this patch the endpoint data only gets reloaded on the _next_ event. TEST=On hammer, I2C passthrough still works. Change-Id: I9b52b9de16767c8a66c702a5ae70369334a3d590 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/569547 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
* stm32: make usb_iface_request externBrian Norris2016-10-211-1/+1
| | | | | | | | | | | | | | This isn't supposed to be static. And with CL:401421, we noticed that clang doesn't like this form. So fix this one too. BRANCH=none BUG=chromium:658436 TEST=build Change-Id: Ibd0c5724d5178c5ce8fc8c1b74382aeddd8f744d Signed-off-by: Brian Norris <briannorris@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/402068 Reviewed-by: Shawn N <shawnn@chromium.org>
* sweetberry: add usb fw updateNick Sanders2016-09-021-0/+50
| | | | | | | | | | | | | | | Port USB firmware update to stm32f4 dwc usb from st usb. This includes usb dwc usb stream inplementation, generic endpoint interfaces, and the sweetberry test case. BUG=chromium:608039 TEST=usb update works BRANCH=None Change-Id: Ia26e4f7e990ee64991468799c99b036f5f32190f Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/377520 Reviewed-by: Randall Spangler <rspangler@chromium.org>
* sweetberry: add dwc usb supportNick Sanders2016-09-011-0/+45
stm32f446 uses a synopsys designware USB block rather than the typical ST one. This change adds driver support for the new block, including usb console support. BUG=chromium:608039 TEST=usb console works BRANCH=None Change-Id: I0e143758ae0b5285f1c94ea2ec5aee159e22e00c Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/365448 Reviewed-by: Randall Spangler <rspangler@chromium.org>