From: grinberg@compulab.co.il (Igor Grinberg)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: imx/mx25_3ds: Add USB support
Date: Wed, 22 Dec 2010 09:06:24 +0200 [thread overview]
Message-ID: <4D11A370.8020902@compulab.co.il> (raw)
In-Reply-To: <1292961521-31539-3-git-send-email-fabio.estevam@freescale.com>
On 12/21/10 21:58, Fabio Estevam wrote:
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> arch/arm/mach-imx/Kconfig | 3 +++
> arch/arm/mach-imx/mach-mx25_3ds.c | 16 +++++++++++++++-
> 2 files changed, 18 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index fed3ee5..4a6c51a 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -97,14 +97,17 @@ comment "MX25 platforms:"
> config MACH_MX25_3DS
> bool "Support MX25PDK (3DS) Platform"
> select SOC_IMX25
> + select IMX_HAVE_PLATFORM_FSL_USB2_UDC
> select IMX_HAVE_PLATFORM_IMX2_WDT
> select IMX_HAVE_PLATFORM_IMXDI_RTC
> select IMX_HAVE_PLATFORM_IMX_FB
> select IMX_HAVE_PLATFORM_IMX_KEYPAD
> select IMX_HAVE_PLATFORM_IMX_UART
> select IMX_HAVE_PLATFORM_MXC_EHCI
> + select IMX_HAVE_PLATFORM_MXC_EHCI
> select IMX_HAVE_PLATFORM_MXC_NAND
> select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
> + select MXC_ULPI if USB_ULPI
>
> config MACH_EUKREA_CPUIMX25
> bool "Support Eukrea CPUIMX25 Platform"
> diff --git a/arch/arm/mach-imx/mach-mx25_3ds.c b/arch/arm/mach-imx/mach-mx25_3ds.c
> index 8b8e75b..62885d4 100644
> --- a/arch/arm/mach-imx/mach-mx25_3ds.c
> +++ b/arch/arm/mach-imx/mach-mx25_3ds.c
> @@ -30,6 +30,8 @@
> #include <linux/gpio.h>
> #include <linux/platform_device.h>
> #include <linux/input/matrix_keypad.h>
> +#include <linux/usb/otg.h>
> +#include <linux/usb/ulpi.h>
>
> #include <mach/hardware.h>
> #include <asm/mach-types.h>
> @@ -40,6 +42,7 @@
> #include <mach/common.h>
> #include <mach/mx25.h>
> #include <mach/iomux-mx25.h>
> +#include <mach/ulpi.h>
Why do you need both ulpi.h included here? I don't see anything using it in your patch.
>
> #include "devices-imx25.h"
>
> @@ -184,13 +187,24 @@ static const struct matrix_keymap_data mx25pdk_keymap_data __initdata = {
> .keymap_size = ARRAY_SIZE(mx25pdk_keymap),
> };
>
> +static const struct mxc_usbh_platform_data usbh2_pdata __initconst = {
> + .portsc = MXC_EHCI_MODE_SERIAL,
> + .flags = MXC_EHCI_INTERNAL_PHY,
> +};
> +
> +static const struct fsl_usb2_platform_data otg_device_pdata __initconst = {
> + .operating_mode = FSL_USB2_DR_DEVICE,
> + .phy_mode = FSL_USB2_PHY_UTMI,
> +};
> +
> static void __init mx25pdk_init(void)
> {
> mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads,
> ARRAY_SIZE(mx25pdk_pads));
>
> imx25_add_imx_uart0(&uart_pdata);
> - imx25_add_mxc_ehci_hs(NULL);
> + imx25_add_fsl_usb2_udc(&otg_device_pdata);
> + imx25_add_mxc_ehci_hs(&usbh2_pdata);
> imx25_add_mxc_nand(&mx25pdk_nand_board_info);
> imx25_add_imxdi_rtc(NULL);
> imx25_add_imx_fb(&mx25pdk_fb_pdata);
--
Regards,
Igor.
next prev parent reply other threads:[~2010-12-22 7:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-21 19:58 [PATCH 1/3] ARM: mx3/mx35_3ds: Add USB OTG Host mode Fabio Estevam
2010-12-21 19:58 ` [PATCH 2/3] ARM: imx/mx27_3ds: Add USB OTG support Fabio Estevam
2010-12-21 19:58 ` [PATCH 3/3] ARM: imx/mx25_3ds: Add USB support Fabio Estevam
2010-12-22 7:06 ` Igor Grinberg [this message]
2010-12-22 7:03 ` [PATCH 1/3] ARM: mx3/mx35_3ds: Add USB OTG Host mode Igor Grinberg
2010-12-22 13:25 ` Fabio Estevam
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=4D11A370.8020902@compulab.co.il \
--to=grinberg@compulab.co.il \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).