From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VMuJT-0000Vv-Ge for barebox@lists.infradead.org; Fri, 20 Sep 2013 06:35:36 +0000 Date: Fri, 20 Sep 2013 08:35:13 +0200 From: Sascha Hauer Message-ID: <20130920063513.GX30088@pengutronix.de> References: <1379594927-3859-1-git-send-email-plagnioj@jcrosoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1379594927-3859-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/1] Animeo IP: add usb host support To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org On Thu, Sep 19, 2013 at 02:48:47PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > arch/arm/boards/animeo_ip/init.c | 16 ++++++++++++++++ > arch/arm/configs/animeo_ip_defconfig | 5 +++++ > 2 files changed, 21 insertions(+) Applied, thanks Sascha > > diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c > index 56b8df2..5419ddb 100644 > --- a/arch/arm/boards/animeo_ip/init.c > +++ b/arch/arm/boards/animeo_ip/init.c > @@ -146,6 +146,21 @@ static void animeo_ip_add_device_mci(void) > static void animeo_ip_add_device_mci(void) {} > #endif > > +/* > + * USB Host port > + */ > +static struct at91_usbh_data __initdata animeo_ip_usbh_data = { > + .ports = 2, > + .vbus_pin = {AT91_PIN_PB15, -EINVAL}, > + .vbus_pin_active_low = {0, 0}, > + > +}; > + > +static void animeo_ip_add_device_usb(void) > +{ > + at91_add_device_usbh_ohci(&animeo_ip_usbh_data); > +} > + > struct gpio_bicolor_led leds[] = { > { > .gpio_c0 = AT91_PIN_PC17, > @@ -216,6 +231,7 @@ static int animeo_ip_devices_init(void) > animeo_ip_power_control(); > animeo_ip_add_device_nand(); > at91_add_device_eth(0, &macb_pdata); > + animeo_ip_add_device_usb(); > animeo_ip_add_device_mci(); > animeo_ip_add_device_buttons(); > animeo_ip_add_device_led(); > diff --git a/arch/arm/configs/animeo_ip_defconfig b/arch/arm/configs/animeo_ip_defconfig > index 23e7278..7f6961f 100644 > --- a/arch/arm/configs/animeo_ip_defconfig > +++ b/arch/arm/configs/animeo_ip_defconfig > @@ -56,6 +56,8 @@ CONFIG_NET_NFS=y > CONFIG_NET_PING=y > CONFIG_MICREL_PHY=y > CONFIG_DRIVER_NET_MACB=y > +CONFIG_NET_USB=y > +CONFIG_NET_USB_ASIX=y > # CONFIG_SPI is not set > CONFIG_MTD=y > # CONFIG_MTD_OOB_DEVICE is not set > @@ -65,6 +67,9 @@ CONFIG_NAND=y > # CONFIG_NAND_ECC_HW_NONE is not set > CONFIG_NAND_ATMEL=y > CONFIG_UBI=y > +CONFIG_USB=y > +CONFIG_USB_OHCI=y > +CONFIG_USB_OHCI_AT91=y > CONFIG_MCI=y > CONFIG_MCI_STARTUP=y > CONFIG_MCI_ATMEL=y > -- > 1.8.4.rc1 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox