From: Steve Rae <srae@broadcom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] usb: add 'bcm_udc_otg' support
Date: Fri, 23 Jan 2015 15:48:15 -0800 [thread overview]
Message-ID: <54C2DDBF.7010007@broadcom.com> (raw)
In-Reply-To: <201501220805.53148.marex@denx.de>
On 15-01-21 11:05 PM, Marek Vasut wrote:
> On Tuesday, January 20, 2015 at 11:42:08 PM, Steve Rae wrote:
>> Implement the UDC support for the USB OTG interface.
>>
>> Signed-off-by: Steve Rae <srae@broadcom.com>
>> ---
>
> General question -- this bcm controller you're adding here isn't by
> any chance a DWC2 controller, or is it ? There's already a driver
> for DWC2 in drivers/usb/gadget/s3c_udc_otg.c . This driver should really
> be properly renamed though ;-/
>
> If this is not DWC2, do you know what controller this is please ?
yes -- it is a DWC2....
So, I have had a quick look at the s3c_udc_otg*.c code....
First observation is that there is a completely different philosophy in
the implementation. For example, the the interrupt handler routine(s),
Broadcom is using #defines (sysmap.h which BTW are autogenerated by our
Device Team) whereas "S3C" is using a "s3c_usbotg_reg" structure for the
'address' and #defines for the 'data/masks'. I'm not suggesting that one
is better than the other, they are just different.
So, how do we proceed?
- is the ultimate goal to get to a proper gadget driver for DWC2? (I
don't really know enough about this yet, so I apologize for these
questions....)
- is the "S3C" code a proper 'gadget' driver and/or is it a better
starting point to get to a gadget driver?
- I don't have enough time right now to really investigate the existing
"S3C" and implement it on our board(s); they are significantly different
and it looks like it will take a lot of effort - is there someone (Denx
or community) that could assist me?
- Could we continue to review this patchset and accept it; then
establish a team to provide a "DWC2 gadget" that could be used going
forward?
Note: this patchset is relatively small:
6938ae5 usb: fastboot: implement fastboot
M drivers/usb/gadget/Makefile
A drivers/usb/gadget/bcm_usb_gadget.c
M include/configs/bcm28155_ap.h
b85657d usb: update 'sysmap.h'
M arch/arm/include/asm/arch-bcm281xx/sysmap.h
d590d41 usb: add 'bcm_udc_otg' support
A drivers/usb/gadget/bcm_udc_otg.c
A drivers/usb/gadget/bcm_udc_otg.h
5f1d857 usb: gadget: fastboot: add CONFIG_FASTBOOT_NO_GADGET support
M drivers/usb/gadget/f_fastboot.c
Thanks in advance, Steve
>
> [...]
[... snip ...]
next prev parent reply other threads:[~2015-01-23 23:48 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 22:42 [U-Boot] [PATCH 0/4] This series implements fastboot on the "bcm28155_ap" boards Steve Rae
2015-01-20 22:42 ` [U-Boot] [PATCH 1/4] usb: gadget: fastboot: add CONFIG_FASTBOOT_NO_GADGET support Steve Rae
2015-01-20 22:42 ` [U-Boot] [PATCH 2/4] usb: add 'bcm_udc_otg' support Steve Rae
2015-01-22 7:05 ` Marek Vasut
2015-01-23 23:48 ` Steve Rae [this message]
2015-01-24 11:47 ` Marek Vasut
2015-01-26 8:38 ` Lukasz Majewski
2015-01-26 12:12 ` Marek Vasut
2015-01-26 12:31 ` Lukasz Majewski
2015-01-30 22:16 ` Marek Vasut
2015-01-31 13:26 ` Lukasz Majewski
2015-01-31 14:15 ` Marek Vasut
2015-02-01 13:15 ` Lukasz Majewski
2015-02-01 16:21 ` Marek Vasut
2015-01-26 17:44 ` Steve Rae
2015-01-27 23:00 ` Marek Vasut
2015-01-28 19:04 ` Steve Rae
2015-01-30 22:17 ` Marek Vasut
2015-01-20 22:42 ` [U-Boot] [PATCH 3/4] usb: update 'sysmap.h' Steve Rae
2015-01-20 22:42 ` [U-Boot] [PATCH 4/4] usb: fastboot: implement fastboot Steve Rae
2015-01-22 7:00 ` [U-Boot] [PATCH 0/4] This series implements fastboot on the "bcm28155_ap" boards Marek Vasut
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=54C2DDBF.7010007@broadcom.com \
--to=srae@broadcom.com \
--cc=u-boot@lists.denx.de \
/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.