From: Dirk Behme <dirk.behme@de.bosch.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] mx6qsabrelite: add and enable USB Host 1 support
Date: Thu, 9 Feb 2012 08:18:06 +0100 [thread overview]
Message-ID: <4F33732E.6050500@de.bosch.com> (raw)
In-Reply-To: <1328714608-4888-3-git-send-email-wg@denx.de>
Hi Wolfgang,
On 08.02.2012 16:23, Wolfgang Grandegger wrote:
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Jason Liu <jason.hui@linaro.org>
> Signed-off-by: Wolfgang Grandegger <wg@denx.de>
> ---
> board/freescale/mx6qsabrelite/mx6qsabrelite.c | 12 ++++++++++++
> include/configs/mx6qsabrelite.h | 15 +++++++++++++++
> 2 files changed, 27 insertions(+), 0 deletions(-)
>
> diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c
> index 4028789..01ecec4 100644
> --- a/board/freescale/mx6qsabrelite/mx6qsabrelite.c
> +++ b/board/freescale/mx6qsabrelite/mx6qsabrelite.c
> @@ -77,6 +77,18 @@ static void setup_iomux_uart(void)
> imx_iomux_v3_setup_multiple_pads(uart2_pads, ARRAY_SIZE(uart2_pads));
> }
>
> +#ifdef CONFIG_USB_EHCI_MX6
> +int board_ehci_hcd_init(int port)
> +{
> + imx_iomux_v3_setup_multiple_pads(usb_pads, ARRAY_SIZE(usb_pads));
Where is the definition of 'usb_pads'?
mx6qsabrelite.c: error: 'usb_pads' undeclared (first use in this function)
> + /* Reset USB hub */
> + gpio_direction_output(204, 0); /* GPIO 7-12 */
With
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=7861b0f3eb638df23b992f89229c3b416634b6fa
we might want to use something like
gpio_direction_output(GPIO_NUMBER(7, 12), 0);
?
Same below for gpio_set_value() ?
> + mdelay(2);
> + gpio_set_value(204, 1);
> +}
mx6qsabrelite.c: warning: no return statement in function returning non-void
Best regards
Dirk
next prev parent reply other threads:[~2012-02-09 7:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 15:23 [U-Boot] [PATCH 0/2] usb/mx6q: USB EHCI support for MX6Q boards Wolfgang Grandegger
2012-02-08 15:23 ` [U-Boot] [PATCH 1/2] usb/ehci: Add USB support for the MX6Q Wolfgang Grandegger
2012-02-09 7:24 ` Dirk Behme
2012-02-08 15:23 ` [U-Boot] [PATCH 2/2] mx6qsabrelite: add and enable USB Host 1 support Wolfgang Grandegger
2012-02-08 15:50 ` Fabio Estevam
2012-02-09 7:18 ` Dirk Behme [this message]
2012-02-09 8:09 ` Wolfgang Grandegger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F33732E.6050500@de.bosch.com \
--to=dirk.behme@de.bosch.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox