From: voice.shen@atmel.com (Bo Shen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] USB: gadget: at91_udc: add at91sam9n12 support
Date: Tue, 10 Feb 2015 09:25:38 +0800 [thread overview]
Message-ID: <54D95E12.50308@atmel.com> (raw)
In-Reply-To: <20150209111434.GN3715@piout.net>
Hi Alexandre,
On 02/09/2015 07:14 PM, Alexandre Belloni wrote:
> Hi Bo,
>
> On 09/02/2015 at 17:02:50 +0800, Bo Shen wrote :
>> Add at91sam9n12 SoC support.
>>
>> Signed-off-by: Bo Shen <voice.shen@atmel.com>
>> ---
>>
>> drivers/usb/gadget/udc/at91_udc.c | 9 ++++++---
>> 1 file changed, 6 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c
>> index c862656..f4c785f 100644
>> --- a/drivers/usb/gadget/udc/at91_udc.c
>> +++ b/drivers/usb/gadget/udc/at91_udc.c
>> @@ -931,7 +931,8 @@ static void pullup(struct at91_udc *udc, int is_on)
>> at91_udp_write(udc, AT91_UDP_TXVC, 0);
>> if (cpu_is_at91rm9200())
>> gpio_set_value(udc->board.pullup_pin, active);
>> - else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() || cpu_is_at91sam9g20()) {
>> + else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() ||
>> + cpu_is_at91sam9g20() || cpu_is_at91sam9n12()) {
>
> cpu_is_at91xx have been removed from the kernel, using the correct
> compatible should be enough, see
> http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/usb/gadget/udc/at91_udc.c?id=f0bceab4e3b528e799aba8fda8d2936fcfd41f1f
Thanks for you information. Missing this patch, check the next-20150209,
it is here. I will base on next-20150209, so this patch no need anymore,
only need to change the dts(i) file now.
Thanks again.
>
>> u32 txvc = at91_udp_read(udc, AT91_UDP_TXVC);
>>
>> txvc |= AT91_UDP_TXVC_PUON;
>> @@ -949,7 +950,8 @@ static void pullup(struct at91_udc *udc, int is_on)
>> at91_udp_write(udc, AT91_UDP_TXVC, AT91_UDP_TXVC_TXVDIS);
>> if (cpu_is_at91rm9200())
>> gpio_set_value(udc->board.pullup_pin, !active);
>> - else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() || cpu_is_at91sam9g20()) {
>> + else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() ||
>> + cpu_is_at91sam9g20() || cpu_is_at91sam9n12()) {
>> u32 txvc = at91_udp_read(udc, AT91_UDP_TXVC);
>>
>> txvc &= ~AT91_UDP_TXVC_PUON;
>> @@ -1758,7 +1760,8 @@ static int at91udc_probe(struct platform_device *pdev)
>> }
>>
>> /* newer chips have more FIFO memory than rm9200 */
>> - if (cpu_is_at91sam9260() || cpu_is_at91sam9g20()) {
>> + if (cpu_is_at91sam9260() || cpu_is_at91sam9g20() ||
>> + cpu_is_at91sam9n12()) {
>> udc->ep[0].maxpacket = 64;
>> udc->ep[3].maxpacket = 64;
>> udc->ep[4].maxpacket = 512;
>> --
>> 2.3.0.rc0
Best Regards,
Bo Shen
WARNING: multiple messages have this Message-ID (diff)
From: Bo Shen <voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
To: Alexandre Belloni
<alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: balbi-l0cyMroinI0@public.gmane.org,
nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH 1/3] USB: gadget: at91_udc: add at91sam9n12 support
Date: Tue, 10 Feb 2015 09:25:38 +0800 [thread overview]
Message-ID: <54D95E12.50308@atmel.com> (raw)
In-Reply-To: <20150209111434.GN3715-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>
Hi Alexandre,
On 02/09/2015 07:14 PM, Alexandre Belloni wrote:
> Hi Bo,
>
> On 09/02/2015 at 17:02:50 +0800, Bo Shen wrote :
>> Add at91sam9n12 SoC support.
>>
>> Signed-off-by: Bo Shen <voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
>> ---
>>
>> drivers/usb/gadget/udc/at91_udc.c | 9 ++++++---
>> 1 file changed, 6 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c
>> index c862656..f4c785f 100644
>> --- a/drivers/usb/gadget/udc/at91_udc.c
>> +++ b/drivers/usb/gadget/udc/at91_udc.c
>> @@ -931,7 +931,8 @@ static void pullup(struct at91_udc *udc, int is_on)
>> at91_udp_write(udc, AT91_UDP_TXVC, 0);
>> if (cpu_is_at91rm9200())
>> gpio_set_value(udc->board.pullup_pin, active);
>> - else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() || cpu_is_at91sam9g20()) {
>> + else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() ||
>> + cpu_is_at91sam9g20() || cpu_is_at91sam9n12()) {
>
> cpu_is_at91xx have been removed from the kernel, using the correct
> compatible should be enough, see
> http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/usb/gadget/udc/at91_udc.c?id=f0bceab4e3b528e799aba8fda8d2936fcfd41f1f
Thanks for you information. Missing this patch, check the next-20150209,
it is here. I will base on next-20150209, so this patch no need anymore,
only need to change the dts(i) file now.
Thanks again.
>
>> u32 txvc = at91_udp_read(udc, AT91_UDP_TXVC);
>>
>> txvc |= AT91_UDP_TXVC_PUON;
>> @@ -949,7 +950,8 @@ static void pullup(struct at91_udc *udc, int is_on)
>> at91_udp_write(udc, AT91_UDP_TXVC, AT91_UDP_TXVC_TXVDIS);
>> if (cpu_is_at91rm9200())
>> gpio_set_value(udc->board.pullup_pin, !active);
>> - else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() || cpu_is_at91sam9g20()) {
>> + else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() ||
>> + cpu_is_at91sam9g20() || cpu_is_at91sam9n12()) {
>> u32 txvc = at91_udp_read(udc, AT91_UDP_TXVC);
>>
>> txvc &= ~AT91_UDP_TXVC_PUON;
>> @@ -1758,7 +1760,8 @@ static int at91udc_probe(struct platform_device *pdev)
>> }
>>
>> /* newer chips have more FIFO memory than rm9200 */
>> - if (cpu_is_at91sam9260() || cpu_is_at91sam9g20()) {
>> + if (cpu_is_at91sam9260() || cpu_is_at91sam9g20() ||
>> + cpu_is_at91sam9n12()) {
>> udc->ep[0].maxpacket = 64;
>> udc->ep[3].maxpacket = 64;
>> udc->ep[4].maxpacket = 512;
>> --
>> 2.3.0.rc0
Best Regards,
Bo Shen
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Bo Shen <voice.shen@atmel.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: <balbi@ti.com>, <nicolas.ferre@atmel.com>,
<devicetree@vger.kernel.org>, <linux-usb@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/3] USB: gadget: at91_udc: add at91sam9n12 support
Date: Tue, 10 Feb 2015 09:25:38 +0800 [thread overview]
Message-ID: <54D95E12.50308@atmel.com> (raw)
In-Reply-To: <20150209111434.GN3715@piout.net>
Hi Alexandre,
On 02/09/2015 07:14 PM, Alexandre Belloni wrote:
> Hi Bo,
>
> On 09/02/2015 at 17:02:50 +0800, Bo Shen wrote :
>> Add at91sam9n12 SoC support.
>>
>> Signed-off-by: Bo Shen <voice.shen@atmel.com>
>> ---
>>
>> drivers/usb/gadget/udc/at91_udc.c | 9 ++++++---
>> 1 file changed, 6 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c
>> index c862656..f4c785f 100644
>> --- a/drivers/usb/gadget/udc/at91_udc.c
>> +++ b/drivers/usb/gadget/udc/at91_udc.c
>> @@ -931,7 +931,8 @@ static void pullup(struct at91_udc *udc, int is_on)
>> at91_udp_write(udc, AT91_UDP_TXVC, 0);
>> if (cpu_is_at91rm9200())
>> gpio_set_value(udc->board.pullup_pin, active);
>> - else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() || cpu_is_at91sam9g20()) {
>> + else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() ||
>> + cpu_is_at91sam9g20() || cpu_is_at91sam9n12()) {
>
> cpu_is_at91xx have been removed from the kernel, using the correct
> compatible should be enough, see
> http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/usb/gadget/udc/at91_udc.c?id=f0bceab4e3b528e799aba8fda8d2936fcfd41f1f
Thanks for you information. Missing this patch, check the next-20150209,
it is here. I will base on next-20150209, so this patch no need anymore,
only need to change the dts(i) file now.
Thanks again.
>
>> u32 txvc = at91_udp_read(udc, AT91_UDP_TXVC);
>>
>> txvc |= AT91_UDP_TXVC_PUON;
>> @@ -949,7 +950,8 @@ static void pullup(struct at91_udc *udc, int is_on)
>> at91_udp_write(udc, AT91_UDP_TXVC, AT91_UDP_TXVC_TXVDIS);
>> if (cpu_is_at91rm9200())
>> gpio_set_value(udc->board.pullup_pin, !active);
>> - else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() || cpu_is_at91sam9g20()) {
>> + else if (cpu_is_at91sam9260() || cpu_is_at91sam9263() ||
>> + cpu_is_at91sam9g20() || cpu_is_at91sam9n12()) {
>> u32 txvc = at91_udp_read(udc, AT91_UDP_TXVC);
>>
>> txvc &= ~AT91_UDP_TXVC_PUON;
>> @@ -1758,7 +1760,8 @@ static int at91udc_probe(struct platform_device *pdev)
>> }
>>
>> /* newer chips have more FIFO memory than rm9200 */
>> - if (cpu_is_at91sam9260() || cpu_is_at91sam9g20()) {
>> + if (cpu_is_at91sam9260() || cpu_is_at91sam9g20() ||
>> + cpu_is_at91sam9n12()) {
>> udc->ep[0].maxpacket = 64;
>> udc->ep[3].maxpacket = 64;
>> udc->ep[4].maxpacket = 512;
>> --
>> 2.3.0.rc0
Best Regards,
Bo Shen
next prev parent reply other threads:[~2015-02-10 1:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-09 9:02 [PATCH 0/3] ARM: at91: at91sam9n12ek: enable usb gadget support Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 9:02 ` [PATCH 1/3] USB: gadget: at91_udc: add at91sam9n12 support Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 11:14 ` Alexandre Belloni
2015-02-09 11:14 ` Alexandre Belloni
2015-02-10 1:25 ` Bo Shen [this message]
2015-02-10 1:25 ` Bo Shen
2015-02-10 1:25 ` Bo Shen
2015-02-09 9:02 ` [PATCH 2/3] ARM: at91: dt: at91sam9n12: add udp device node Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 9:02 ` [PATCH 3/3] ARM: at91: dt: at91sam9n12ek: enable udp Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 9:02 ` Bo Shen
2015-02-09 10:04 ` Sylvain Rochet
2015-02-09 10:04 ` Sylvain Rochet
2015-02-09 10:04 ` Sylvain Rochet
2015-02-09 10:23 ` Bo Shen
2015-02-09 10:23 ` Bo Shen
2015-02-09 10:23 ` Bo Shen
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=54D95E12.50308@atmel.com \
--to=voice.shen@atmel.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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.