From: Wolfgang Grandegger <wg@grandegger.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] mx6qsabrelite: add and enable USB Host 1 support
Date: Thu, 09 Feb 2012 09:09:52 +0100 [thread overview]
Message-ID: <4F337F50.4030902@grandegger.com> (raw)
In-Reply-To: <4F33732E.6050500@de.bosch.com>
Hi Dirk,
On 02/09/2012 08:18 AM, Dirk Behme wrote:
> 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'?
Oops, that hunk gets lost when rebasing to head of u-boot-imx in a hurry:
@@ -122,6 +122,10 @@ iomux_v3_cfg_t enet_pads2[] = {
MX6Q_PAD_RGMII_RX_CTL__RGMII_RX_CTL | MUX_PAD_CTRL(ENET_PAD_CTRL),
};
+iomux_v3_cfg_t usb_pads[] = {
+ MX6Q_PAD_GPIO_17__GPIO_7_12 | MUX_PAD_CTRL(NO_PAD_CTRL),
+};
+
static void setup_iomux_enet(void)
{
gpio_direction_output(87, 0); /* GPIO 3-23 */
Will be fixed in v2.
>
> 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);
OK, unfortunately, that file is full of such calls using the
number directly ==> seperate patch.
> ?
>
> Same below for gpio_set_value() ?
>
>> + mdelay(2);
>> + gpio_set_value(204, 1);
>> +}
>
> mx6qsabrelite.c: warning: no return statement in function returning
> non-void
Puh, v1 is obviously crap... will send v2 in a second, sorry.
Wolfgang.
prev parent reply other threads:[~2012-02-09 8:09 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
2012-02-09 8:09 ` Wolfgang Grandegger [this message]
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=4F337F50.4030902@grandegger.com \
--to=wg@grandegger.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