From: Felipe Balbi <balbi@ti.com>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, Felipe Balbi <balbi@ti.com>,
Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH v2 3/5] USB: OMAP1: OTG controller driver
Date: Tue, 18 Jun 2013 11:21:43 +0300 [thread overview]
Message-ID: <20130618082143.GE5461@arwen.pp.htv.fi> (raw)
In-Reply-To: <1371389712-29516-4-git-send-email-aaro.koskinen@iki.fi>
[-- Attachment #1: Type: text/plain, Size: 3256 bytes --]
On Sun, Jun 16, 2013 at 04:35:10PM +0300, Aaro Koskinen wrote:
> Transceivers need to manage OTG controller state on OMAP1 to enable
> switching between peripheral and host modes. Provide a driver for that.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
> ---
> drivers/usb/phy/Kconfig | 10 +++
> drivers/usb/phy/Makefile | 1 +
> drivers/usb/phy/phy-omap-otg.c | 171 +++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 182 insertions(+)
> create mode 100644 drivers/usb/phy/phy-omap-otg.c
>
> diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig
> index 7ef3eb8..14a50bd 100644
> --- a/drivers/usb/phy/Kconfig
> +++ b/drivers/usb/phy/Kconfig
> @@ -135,6 +135,16 @@ config USB_GPIO_VBUS
> optionally control of a D+ pullup GPIO as well as a VBUS
> current limit regulator.
>
> +config OMAP_OTG
> + tristate "OMAP USB OTG controller driver"
> + depends on ARCH_OMAP_OTG && EXTCON
> + help
> + Enable this to support some transceivers on OMAP1 platforms. OTG
> + controller is needed to switch between host and peripheral modes.
> +
> + This driver can also be built as a module. If so, the module
> + will be called omap-otg.
> +
> config USB_ISP1301
> tristate "NXP ISP1301 USB transceiver support"
> depends on USB || USB_GADGET
> diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile
> index a9169cb..c7f391b 100644
> --- a/drivers/usb/phy/Makefile
> +++ b/drivers/usb/phy/Makefile
> @@ -15,6 +15,7 @@ obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o
> obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o
> obj-$(CONFIG_NOP_USB_XCEIV) += phy-nop.o
> obj-$(CONFIG_OMAP_CONTROL_USB) += phy-omap-control.o
> +obj-$(CONFIG_OMAP_OTG) += phy-omap-otg.o
> obj-$(CONFIG_OMAP_USB2) += phy-omap-usb2.o
> obj-$(CONFIG_OMAP_USB3) += phy-omap-usb3.o
> obj-$(CONFIG_SAMSUNG_USBPHY) += phy-samsung-usb.o
> diff --git a/drivers/usb/phy/phy-omap-otg.c b/drivers/usb/phy/phy-omap-otg.c
> new file mode 100644
> index 0000000..2a8c674
> --- /dev/null
> +++ b/drivers/usb/phy/phy-omap-otg.c
> @@ -0,0 +1,171 @@
> +/*
> + * OMAP OTG controller driver
> + *
> + * Based on code from tahvo-usb.c and isp1301_omap.c drivers.
> + *
> + * Copyright (C) 2005-2006 Nokia Corporation
> + * Copyright (C) 2004 Texas Instruments
> + * Copyright (C) 2004 David Brownell
> + *
> + * This file is subject to the terms and conditions of the GNU General
> + * Public License. See the file "COPYING" in the main directory of this
> + * archive for more details.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + */
> +
> +#include <linux/io.h>
> +#include <linux/err.h>
> +#include <linux/extcon.h>
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/interrupt.h>
> +#include <linux/platform_device.h>
> +#include <linux/platform_data/usb-omap1.h>
> +
> +#include <mach/usb.h>
no mach/* includes under drivers/usb, sorry. It's a pain to fix those up
later.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-06-18 8:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-16 13:35 [PATCH v2 0/5] USB: OMAP1: Tahvo USB support for 770 Aaro Koskinen
[not found] ` <1371389712-29516-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2013-06-16 13:35 ` [PATCH v2 1/5] ARM: OMAP1: USB: move omap_usb_config to platform data Aaro Koskinen
[not found] ` <1371389712-29516-2-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2013-06-18 10:01 ` Tony Lindgren
2013-06-16 13:35 ` [PATCH v2 3/5] USB: OMAP1: OTG controller driver Aaro Koskinen
2013-06-18 8:21 ` Felipe Balbi [this message]
2013-06-18 16:55 ` Aaro Koskinen
2013-06-16 13:35 ` [PATCH v2 4/5] USB: OMAP1: Tahvo USB transceiver driver Aaro Koskinen
2013-06-16 13:35 ` [PATCH v2 2/5] USB: OMAP1: add extcon to platform data Aaro Koskinen
2013-06-16 13:35 ` [PATCH v2 5/5] ARM: OMAP1: nokia770: enable Tahvo Aaro Koskinen
[not found] ` <1371389712-29516-6-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2013-06-18 10:16 ` Tony Lindgren
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=20130618082143.GE5461@arwen.pp.htv.fi \
--to=balbi@ti.com \
--cc=aaro.koskinen@iki.fi \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=tony@atomide.com \
/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).