public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 1/2] driver:usb:s3c_udc: add support for Exynos4x12
Date: Thu, 21 Nov 2013 18:09:43 +0900	[thread overview]
Message-ID: <528DCDD7.8030105@samsung.com> (raw)
In-Reply-To: <000e01cee695$501370d0$f03a5270$%wilczek@samsung.com>

On 21/11/13 17:40, Piotr Wilczek wrote:
> Dear Minkyu Kang,
> 
>> -----Original Message-----
>> From: Minkyu Kang [mailto:mk7.kang at samsung.com]
>> Sent: Thursday, November 21, 2013 9:10 AM
>> To: Piotr Wilczek
>> Cc: u-boot at lists.denx.de; Kyungmin Park
>> Subject: Re: [PATCH V3 1/2] driver:usb:s3c_udc: add support for
>> Exynos4x12
>>
>> Dear Piotr,
>>
>> On 08/11/13 00:00, Piotr Wilczek wrote:
>>> This patch add new defines for usb phy for Exynos4x12.
>>>
>>> Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
>>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>>> CC: Minkyu Kang <mk7.kang@samsung.com>
>>> ---
>>>
>>> Chnages for v3:
>>>  - removed unnecessary empty line
>>>
>>> Changes for v2:
>>>  - no changes
>>>
>>>  drivers/usb/gadget/regs-otg.h    |    5 +++++
>>>  drivers/usb/gadget/s3c_udc_otg.c |    9 +++++++--
>>>  2 files changed, 12 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/drivers/usb/gadget/regs-otg.h
>>> b/drivers/usb/gadget/regs-otg.h index 84bfcc5..ac5d112 100644
>>> --- a/drivers/usb/gadget/regs-otg.h
>>> +++ b/drivers/usb/gadget/regs-otg.h
>>> @@ -226,6 +226,11 @@ struct s3c_usbotg_reg {
>>>  #define CLK_SEL_12MHZ                   (0x2 << 0)
>>>  #define CLK_SEL_48MHZ                   (0x0 << 0)
>>>
>>> +#define EXYNOS4X12_ID_PULLUP0		(0x01 << 3)
>>> +#define EXYNOS4X12_COMMON_ON_N0	(0x01 << 4)
>>> +#define EXYNOS4X12_CLK_SEL_12MHZ	(0x02 << 0)
>>> +#define EXYNOS4X12_CLK_SEL_24MHZ	(0x05 << 0)
>>> +
>>>  /* Device Configuration Register DCFG */
>>>  #define DEV_SPEED_HIGH_SPEED_20         (0x0 << 0)
>>>  #define DEV_SPEED_FULL_SPEED_20         (0x1 << 0)
>>> diff --git a/drivers/usb/gadget/s3c_udc_otg.c
>>> b/drivers/usb/gadget/s3c_udc_otg.c
>>> index 7e20209..ba17a04 100644
>>> --- a/drivers/usb/gadget/s3c_udc_otg.c
>>> +++ b/drivers/usb/gadget/s3c_udc_otg.c
>>> @@ -167,8 +167,13 @@ void otg_phy_init(struct s3c_udc *dev)
>>>  		writel((readl(&phy->phypwr) &~(OTG_DISABLE_0 |
>> ANALOG_PWRDOWN)
>>>  			&~FORCE_SUSPEND_0), &phy->phypwr);
>>>
>>> -	writel((readl(&phy->phyclk) &~(ID_PULLUP0 | COMMON_ON_N0)) |
>>> -	       CLK_SEL_24MHZ, &phy->phyclk); /* PLL 24Mhz */
>>> +	if (s5p_cpu_id == 0x4412)
>>
>> proid_is_exynos4412()
> Ok but, proid_is_exynos4412() is not available for s5pc1**, ex the Goni
> board.

Right..
just keep going.
I'll fix it later.

> 
>>
>>> +		writel((readl(&phy->phyclk) & ~(EXYNOS4X12_ID_PULLUP0 |
>>> +			EXYNOS4X12_COMMON_ON_N0)) |
> EXYNOS4X12_CLK_SEL_24MHZ,
>>> +		       &phy->phyclk); /* PLL 24Mhz */
>>> +	else
>>> +		writel((readl(&phy->phyclk) & ~(ID_PULLUP0 | COMMON_ON_N0))
>> |
>>> +		       CLK_SEL_24MHZ, &phy->phyclk); /* PLL 24Mhz */
>>>
>>>  	writel((readl(&phy->rstcon) &~(LINK_SW_RST | PHYLNK_SW_RST))
>>>  	       | PHY_SW_RST0, &phy->rstcon);
>>>
>>
>> Thanks,
>> Minkyu Kang.
> 
> Best regards
> Piotr Wilczek
> 
> 
> 
> 

Thanks,
Minkyu Kang.

  reply	other threads:[~2013-11-21  9:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06 13:46 [U-Boot] [PATCH V2 1/2] driver:usb:s3c_udc: add support for Exynos4x12 Piotr Wilczek
2013-11-06 13:46 ` [U-Boot] [PATCH V2 2/2] trats2: enable ums support on Trats2 Piotr Wilczek
2013-11-07  4:46   ` Jaehoon Chung
2013-11-07  4:48 ` [U-Boot] [PATCH V2 1/2] driver:usb:s3c_udc: add support for Exynos4x12 Jaehoon Chung
2013-11-07  6:42   ` Piotr Wilczek
2013-11-07 15:00 ` [U-Boot] [PATCH V3 " Piotr Wilczek
2013-11-07 15:00   ` [U-Boot] [PATCH V3 2/2] trats2: enable ums support on Trats2 Piotr Wilczek
2013-11-21  8:24     ` Minkyu Kang
2013-11-21  8:42       ` Piotr Wilczek
2013-11-21  8:10   ` [U-Boot] [PATCH V3 1/2] driver:usb:s3c_udc: add support for Exynos4x12 Minkyu Kang
2013-11-21  8:40     ` Piotr Wilczek
2013-11-21  9:09       ` Minkyu Kang [this message]
2013-11-21 14:46   ` [U-Boot] [PATCH V4 " Piotr Wilczek
2013-11-21 14:46     ` [U-Boot] [PATCH V4 2/2] trats2: enable ums support on Trats2 Piotr Wilczek
2013-12-02  2:27       ` Minkyu Kang
2013-12-02  2:27     ` [U-Boot] [PATCH V4 1/2] driver:usb:s3c_udc: add support for Exynos4x12 Minkyu Kang

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=528DCDD7.8030105@samsung.com \
    --to=mk7.kang@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox