From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 13 Jul 2015 17:54:39 +0200 Subject: [U-Boot] [PATCH 13/16] cgtqmx6eval: Add USB support In-Reply-To: <1436800998-21248-13-git-send-email-otavio@ossystems.com.br> References: <1436800998-21248-1-git-send-email-otavio@ossystems.com.br> <1436800998-21248-13-git-send-email-otavio@ossystems.com.br> Message-ID: <201507131754.39591.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 Monday, July 13, 2015 at 05:23:15 PM, Otavio Salvador wrote: > Add USB support. > > Signed-off-by: Otavio Salvador > --- [...] > +int board_ehci_power(int port, int on) > +{ > + switch (port) { > + case 0: > + break; > + case 1: > + if (on) > + gpio_direction_output(IMX_GPIO_NR(5, 5), 1); > + else > + gpio_direction_output(IMX_GPIO_NR(5, 5), 0); Plain gpio_direction_output(..., on); would work here too. [...] Best regards, Marek Vasut