diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2015-02-23 18:40:23 +0530 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-04-14 05:48:11 +0200 |
commit | 2d48aa69bd2e0164a22b253733564701ed3381a1 (patch) | |
tree | 82b4ea7b3a45893b5dee50d02e3ee59c5363e84c /board/ti/am43xx | |
parent | a69e2c225d152cb91d7d279eb8107f26a9938e51 (diff) | |
download | u-boot-2d48aa69bd2e0164a22b253733564701ed3381a1.tar.gz u-boot-2d48aa69bd2e0164a22b253733564701ed3381a1.tar.xz u-boot-2d48aa69bd2e0164a22b253733564701ed3381a1.zip |
usb: modify usb_gadget_handle_interrupts to take controller index
Since we support multiple dwc3 controllers to be existent at the same
time, in order to handle the interrupts of a particular dwc3 controller
usb_gadget_handle_interrutps should take controller index as an
argument.
Hence the API of usb_gadget_handle_interrupts is modified to take
controller index as an argument and made the corresponding changes to all
the usb_gadget_handle_interrupts calls.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'board/ti/am43xx')
-rw-r--r-- | board/ti/am43xx/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index 6c4fe48a38..ddf4c5fc13 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -732,13 +732,13 @@ int board_usb_cleanup(int index, enum usb_init_type init) return 0; } -int usb_gadget_handle_interrupts(void) +int usb_gadget_handle_interrupts(int index) { u32 status; - status = dwc3_omap_uboot_interrupt_status(0); + status = dwc3_omap_uboot_interrupt_status(index); if (status) - dwc3_uboot_handle_interrupt(0); + dwc3_uboot_handle_interrupt(index); return 0; } |