From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 22 May 2015 01:09:13 +0200 Subject: [U-Boot] [PATCH] usb: imx: Allow multiple USB ports to be used at the same time on mx5 In-Reply-To: <64CA5C49A43E314D9F7DAE05370E2F7B05F54E63@hed-dc01.hed.local> References: <1432242175-11817-1-git-send-email-mstarr@hedonline.com> <64CA5C49A43E314D9F7DAE05370E2F7B05F54E63@hed-dc01.hed.local> Message-ID: <201505220109.13537.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday, May 21, 2015 at 11:02:55 PM, Matthew Starr wrote: > CONFIG_MXC_USB_PORT was used to define which USB port was to be > initialized. If CONFIG_USB_MAX_CONTROLLER_COUNT > 1, then the > port specified by CONFIG_MXC_USB_PORT would be duplicated > CONFIG_USB_MAX_CONTROLLER_COUNT times including duplicating all > devices connected to the ports. None of the other USB ports would > be available for use. > > The fix is to remove all instances of CONFIG_MXC_USB_PORT from the > imx53 ehci driver since it was only allowing the port specified by > CONFIG_MXC_USB_PORT to be populated. Then use > CONFIG_USB_MAX_CONTROLLER_COUNT to specifiy which USB ports should be > enabled, starting with port 0. If port 1 is needed, then set > CONFIG_USB_MAX_CONTROLLER_COUNT to 2 so 2 ports get populated (port 0 > and port 1) even though port 0 will not be used. > > Configurations for all boards affected are updated. > > Signed-off-by: Matthew Starr Hi! Why don't you just define a list of controllers which should be initialized instead ? #define CONTROLLERS_TO_INIT { USB1, USB3 } Where USB1 and USB3 is the address of the controller. Note that these addresses are defined in arch/arm/include/ headers. Best regards, Marek Vasut