From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jan Luebbe <jlu@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] am33xx-clock: configure PLLs based on oscillator frequency
Date: Thu, 18 Apr 2013 08:24:02 +0200 [thread overview]
Message-ID: <20130418062402.GD1906@pengutronix.de> (raw)
In-Reply-To: <1366204631-2792-1-git-send-email-jlu@pengutronix.de>
On Wed, Apr 17, 2013 at 03:17:11PM +0200, Jan Luebbe wrote:
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
This patch deserves a bit more description why it does what it does
and also that it includes no functional change.
> ---
> arch/arm/mach-omap/include/mach/am33xx-clock.h | 15 +++++----------
> 1 file changed, 5 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm/mach-omap/include/mach/am33xx-clock.h b/arch/arm/mach-omap/include/mach/am33xx-clock.h
> index 39c107f..f496756 100644
> --- a/arch/arm/mach-omap/include/mach/am33xx-clock.h
> +++ b/arch/arm/mach-omap/include/mach/am33xx-clock.h
> @@ -31,12 +31,12 @@
> #define MPUPLL_M_600 600 /* 125 * n */
> #define MPUPLL_M_720 720 /* 125 * n */
>
> -#define MPUPLL_N 23 /* (n -1 ) */
> +#define MPUPLL_N (OSC-1)
Add whitespaces left and right to operators please.
> #define MPUPLL_M2 1
>
> /* Core PLL Fdll = 1 GHZ, */
> #define COREPLL_M 1000 /* 125 * n */
> -#define COREPLL_N 23 /* (n -1 ) */
> +#define COREPLL_N (OSC-1)
>
> #define COREPLL_M4 10 /* CORE_CLKOUTM4 = 200 MHZ */
> #define COREPLL_M5 8 /* CORE_CLKOUTM5 = 250 MHZ */
> @@ -48,19 +48,14 @@
> * For clkout = 192 MHZ, Fdll = 960 MHZ, divider values are given below
> */
> #define PERPLL_M 960
> -#define PERPLL_N 23
> +#define PERPLL_N (OSC-1)
> #define PERPLL_M2 5
>
> -/* DDR Freq is 166 MHZ for now*/
> +/* DDR Freq is 266 MHZ for now*/
> /* Set Fdll = 400 MHZ , Fdll = M * 2 * CLKINP/ N + 1; clkout = Fdll /(2 * M2) */
> //#if (CONFIG_AM335X_EVM_IS_13x13 == 1)
> -#if 0
> -#define DDRPLL_M 166 /* M/N + 1 = 25/3 */
> -#else
> #define DDRPLL_M 266
> -#endif
Please make this a separate patch.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2013-04-18 6:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-17 13:17 Jan Luebbe
2013-04-18 6:24 ` Sascha Hauer [this message]
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=20130418062402.GD1906@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jlu@pengutronix.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