From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Pavankumar Kondeti <pkondeti@codeaurora.org>
Cc: "greg@kroah.com" <greg@kroah.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
Mike Lockwood <lockwood@android.com>,
Brian Swetland <swetland@google.com>
Subject: Re: [PATCH v2] USB: Add MSM USB Device Controller driver
Date: Tue, 9 Nov 2010 12:40:17 +0100 [thread overview]
Message-ID: <4CD93321.4040106@parrot.com> (raw)
In-Reply-To: <1289301494-26150-2-git-send-email-pkondeti@codeaurora.org>
Pavankumar Kondeti a écrit :
> This patch adds the basic support for the USB Device Controller on Qualcomm
> MSM family of SOCs. The controller supports upto 16 endpoints including the
> default endpoint (ep0). All the data transfers are driven by DMA.
>
> VBUS line is also connected to PMIC chip. The module controlling PMIC chip
> notifies about cable connect/disconnect events. Hence, PHY comparators
> are turned off in low power mode.
>
> This driver was originally developed by Google and is available at
> http://android.git.kernel.org/?p=kernel/experimental.git.
>
> +
> +#define USB_ID (MSM_USB_BASE + 0x0000)
> +#define USB_HWGENERAL (MSM_USB_BASE + 0x0004)
> +#define USB_HWHOST (MSM_USB_BASE + 0x0008)
> +#define USB_HWDEVICE (MSM_USB_BASE + 0x000C)
> +#define USB_HWTXBUF (MSM_USB_BASE + 0x0010)
> +#define USB_HWRXBUF (MSM_USB_BASE + 0x0014)
> +
> +#ifdef CONFIG_ARCH_MSM7X00A
> +#define USB_SBUSCFG (MSM_USB_BASE + 0x0090)
> +#else
> +#define USB_AHBBURST (MSM_USB_BASE + 0x0090)
> +#define USB_AHBMODE (MSM_USB_BASE + 0x0098)
> +#endif
> +
> +#define USB_CAPLENGTH (MSM_USB_BASE + 0x0100) /* 8 bit */
> +#define USB_HCIVERSION (MSM_USB_BASE + 0x0102) /* 16 bit */
> +#define USB_HCSPARAMS (MSM_USB_BASE + 0x0104)
> +#define USB_HCCPARAMS (MSM_USB_BASE + 0x0108)
> +#define USB_DCIVERSION (MSM_USB_BASE + 0x0120) /* 16 bit */
> +#define USB_USBCMD (MSM_USB_BASE + 0x0140)
> +#define USB_USBSTS (MSM_USB_BASE + 0x0144)
> +#define USB_USBINTR (MSM_USB_BASE + 0x0148)
> +#define USB_FRINDEX (MSM_USB_BASE + 0x014C)
> +#define USB_DEVICEADDR (MSM_USB_BASE + 0x0154)
> +#define USB_ENDPOINTLISTADDR (MSM_USB_BASE + 0x0158)
> +#define USB_BURSTSIZE (MSM_USB_BASE + 0x0160)
> +#define USB_TXFILLTUNING (MSM_USB_BASE + 0x0164)
> +#define USB_ULPI_VIEWPORT (MSM_USB_BASE + 0x0170)
> +#define USB_ENDPTNAK (MSM_USB_BASE + 0x0178)
> +#define USB_ENDPTNAKEN (MSM_USB_BASE + 0x017C)
> +#define USB_PORTSC (MSM_USB_BASE + 0x0184)
> +#define USB_OTGSC (MSM_USB_BASE + 0x01A4)
> +#define USB_USBMODE (MSM_USB_BASE + 0x01A8)
> +#define USB_ENDPTSETUPSTAT (MSM_USB_BASE + 0x01AC)
> +#define USB_ENDPTPRIME (MSM_USB_BASE + 0x01B0)
> +#define USB_ENDPTFLUSH (MSM_USB_BASE + 0x01B4)
> +#define USB_ENDPTSTAT (MSM_USB_BASE + 0x01B8)
> +#define USB_ENDPTCOMPLETE (MSM_USB_BASE + 0x01BC)
> +#define USB_ENDPTCTRL(n) (MSM_USB_BASE + 0x01C0 + (4 * (n)))
> +
> +
> +#define USBCMD_RESET 2
> +#define USBCMD_ATTACH 1
> +#define USBCMD_ATDTW (1 << 14)
> +
> +#define USBMODE_DEVICE 2
> +#define USBMODE_HOST 3
> +
>
This look like the arc/chipidea/mips ehci otg core.
Why can't you reuse the ci13xxx_udc.c driver ?
Or if ci13xxx_udc.c is too bad, rewrite a new generic version for this core.
Matthieu
next prev parent reply other threads:[~2010-11-09 11:49 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-09 11:18 [PATCH v2] Add MSM USB Device Controller support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: Add MSM USB Device Controller driver Pavankumar Kondeti
2010-11-09 11:40 ` Matthieu CASTET [this message]
2010-11-09 12:16 ` Pavan Kondeti
2010-11-09 13:36 ` Matthieu CASTET
2010-11-10 2:12 ` Pavan Kondeti
2010-11-10 2:54 ` David Brownell
2010-11-10 6:22 ` Brian Swetland
2010-11-19 17:16 ` Matthieu CASTET
2010-11-27 14:00 ` Pavan Kondeti
2010-11-28 6:30 ` David Brownell
2010-11-28 12:09 ` Pavan Kondeti
2010-12-07 12:44 ` Pavan Kondeti
2010-11-09 13:25 ` Heikki Krogerus
2010-11-09 13:52 ` Matthieu CASTET
2010-11-09 15:36 ` Igor Grinberg
2010-11-10 2:19 ` Pavan Kondeti
2010-11-10 6:47 ` Igor Grinberg
2010-11-11 2:10 ` Pavan Kondeti
2010-11-19 5:50 ` Pavan Kondeti
2010-11-21 8:09 ` Igor Grinberg
2010-11-10 2:17 ` Pavan Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: msm72k_udc: Add debugfs support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: msm72k_udc: Add Remote wakeup support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: msm72k_udc: Add Test Mode support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH] USB: msm72k_udc: Add charging notification support Pavankumar Kondeti
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=4CD93321.4040106@parrot.com \
--to=matthieu.castet@parrot.com \
--cc=greg@kroah.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=lockwood@android.com \
--cc=pkondeti@codeaurora.org \
--cc=swetland@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.