Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 21:33:03 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Warner Losh <imp@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r238850 - head/sys/arm/conf
Message-ID:  <201207272133.03147.hselasky@c2i.net>
In-Reply-To: <201207271732.q6RHW1e9030262@svn.freebsd.org>
References:  <201207271732.q6RHW1e9030262@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 27 July 2012 19:32:01 Warner Losh wrote:
> Author: imp
> Date: Fri Jul 27 17:32:01 2012
> New Revision: 238850
> URL: http://svn.freebsd.org/changeset/base/238850
> 
> Log:
>   Add gadget devices.  Not yet added to the child lists, but here to
>   keep things from bit-rotting.
> 
> Modified:
>   head/sys/arm/conf/ATMEL
> 
> Modified: head/sys/arm/conf/ATMEL
> ===========================================================================
> === --- head/sys/arm/conf/ATMEL	Fri Jul 27 17:31:19 2012	(r238849)
> +++ head/sys/arm/conf/ATMEL	Fri Jul 27 17:32:01 2012	(r238850)
> @@ -161,6 +161,11 @@ device		ohci		# OHCI USB interface
>  device		usb		# USB Bus (required)
>  device		umass		# Disks/Mass storage - Requires scbus and da
> 
> +# USB device (gadget) support
> +device		at91_dci	# Atmel's usb device
> +device		usfs		# emulate a flash
> +device		cdce		# emulate an ethernet
> +
>  # watchdog
>  device		at91_wdt	# Atmel AT91 Watchdog Timer

Hi,

You also need:

device usb_template

For gadget mode.

The configuration shown to the host is selected using:

sysctl hw.usb.template=0,1,2,3, ...

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207272133.03147.hselasky>