From e09bd50fdd223eeb3274216fdc088c71b394f80f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 12 Aug 2013 14:44:06 -0600 Subject: [PATCH] First of several changes needed to support multiple USB host root hubs --- ChangeLog | 10 +- Documentation/NuttxPortingGuide.html | 10 +- arch/arm/src/lpc17xx/lpc17_usbhost.c | 17 +- arch/arm/src/sama5/chip/sam_ohci.h | 55 ++--- arch/arm/src/sama5/sam_ohci.c | 298 +++++++++++++++---------- arch/arm/src/stm32/stm32_otgfshost.c | 17 +- configs/cloudctrl/src/up_usb.c | 4 +- configs/mikroe-stm32f4/src/up_usb.c | 4 +- configs/olimex-lpc1766stk/src/up_nsh.c | 4 +- configs/open1788/src/lpc17_nsh.c | 4 +- configs/pic32-starterkit/src/up_nsh.c | 4 +- configs/pic32mx7mmb/src/up_nsh.c | 4 +- configs/sama5d3x-ek/src/sam_usb.c | 17 +- configs/sama5d3x-ek/src/sama5d3x-ek.h | 2 +- configs/shenzhou/src/up_usb.c | 4 +- configs/stm3220g-eval/src/up_usb.c | 4 +- configs/stm3240g-eval/src/up_usb.c | 4 +- configs/stm32f4discovery/src/up_usb.c | 4 +- configs/sure-pic32mx/src/pic32mx_nsh.c | 6 +- include/nuttx/usb/usbhost.h | 67 +++--- 20 files changed, 321 insertions(+), 218 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6ee8926fef8..689c64d28f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5369,4 +5369,12 @@ * arch/arm/src/sama5/sam_ohci.c and sam_usbhost.h (was sam_ohci.h), and configs/sama5d3x-ek/src/sam_usb.c, and sama5d3x-ek.h: Add controls to enable VBUS power in OHCI host most (2013-8-12). - + * includes/nuttx/usb/usbhost.h, all USB host drivers in arch/, and all + USB host-side connection monitoring threads in configs/*/src: The + SAMA5 has three downstream ports; all of the other USB host + implementations have only one. This will require significant changes + to the USB host interfaces starting with these chnages to monitor + connections on a port-by-port basis. This effects a lot of files and + more changes are coming for this issues. Changes are being blindly + incorporated into other architrectures. I am being careful to avoid + breakage, but I expect some (2013-8-12). diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index a77df7f0fdf..71bb5842c70 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@

NuttX RTOS Porting Guide

-

Last Updated: July 26, 2013

+

Last Updated: August 12, 2013

@@ -3433,6 +3433,8 @@ extern void up_ledoff(int led);

Examples: arch/arm/src/lpc17xx/lpc17_usbhost.c. + arch/arm/src/stm32/stm32_otgfshost.c. + arch/arm/src/sama5/sam_ohci.c.

  • @@ -3469,7 +3471,7 @@ extern void up_ledoff(int led);