All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Cherian <george.cherian@ti.com>
To: Ruchika Kharwar <ruchika@ti.com>
Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
	Felipe Balbi <balbi@ti.com>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH] jacinto6 : usb3_phy: Updated dpll M,N values.
Date: Fri, 21 Jun 2013 13:12:17 +0530	[thread overview]
Message-ID: <51C403D9.3060101@ti.com> (raw)
In-Reply-To: <1369943649-982-1-git-send-email-ruchika@ti.com>

On 5/31/2013 1:24 AM, Ruchika Kharwar wrote:
> Addition of the M and N recommended values for the USB3 PHY DPLL.
> Sysclk for DRA7xx is 20MHz.
> This yields:
> Clk = 20MHz * M/(N+1) = 20MHz * 1000 /(7+1) = 2.5 Ghz
>
> Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
> ---
>   drivers/usb/phy/phy-omap-usb3.c |    7 ++++++-
>   1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/phy/phy-omap-usb3.c b/drivers/usb/phy/phy-omap-usb3.c
> index a6e60b1..efe6e14 100644
> --- a/drivers/usb/phy/phy-omap-usb3.c
> +++ b/drivers/usb/phy/phy-omap-usb3.c
> @@ -27,7 +27,7 @@
>   #include <linux/delay.h>
>   #include <linux/usb/omap_control_usb.h>
>   
> -#define	NUM_SYS_CLKS		5
> +#define	NUM_SYS_CLKS		6
>   #define	PLL_STATUS		0x00000004
>   #define	PLL_GO			0x00000008
>   #define	PLL_CONFIGURATION1	0x0000000C
> @@ -62,6 +62,7 @@ enum sys_clk_rate {
>   	CLK_RATE_12MHZ,
>   	CLK_RATE_16MHZ,
>   	CLK_RATE_19MHZ,
> +	CLK_RATE_20MHZ,
>   	CLK_RATE_26MHZ,
>   	CLK_RATE_38MHZ
>   };
> @@ -72,6 +73,8 @@ static struct usb_dpll_params omap_usb3_dpll_params[NUM_SYS_CLKS] = {
>   	{1172, 8, 4, 20, 65537},	/* 19.2 MHz */
>   	{1250, 12, 4, 20, 0},		/* 26 MHz */
>   	{3125, 47, 4, 20, 92843},	/* 38.4 MHz */
> +	{1000, 7, 4, 10, 0},            /* 20 MHz */
> +
>   };
>   

CLK_RATE_20MHZ is 3 but 20MHz value added in array at offset 5???

>   static int omap_usb3_suspend(struct usb_phy *x, int suspend)
> @@ -122,6 +125,8 @@ static inline enum sys_clk_rate __get_sys_clk_index(unsigned long rate)
>   		return CLK_RATE_16MHZ;
>   	case 19200000:
>   		return CLK_RATE_19MHZ;
> +	case 20000000:
> +		return CLK_RATE_20MHZ;
>   	case 26000000:
>   		return CLK_RATE_26MHZ;
>   	case 38400000:


  reply	other threads:[~2013-06-21  7:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 19:54 [PATCH] jacinto6 : usb3_phy: Updated dpll M,N values Ruchika Kharwar
2013-06-21  7:42 ` George Cherian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-21 15:46 Ruchika Kharwar
2013-07-08  7:28 ` Felipe Balbi
2013-07-08 14:33   ` Ruchika Kharwar
     [not found]     ` <51DACDA2.1060806-l0cyMroinI0@public.gmane.org>
2013-07-09 11:43       ` Roger Quadros

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=51C403D9.3060101@ti.com \
    --to=george.cherian@ti.com \
    --cc=balbi@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kishon@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=ruchika@ti.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.