From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4 v4] Preventing needless switching on and off PLL bypass mode, allowing allow single-stepping through the SPL
Date: Tue, 7 Feb 2012 17:53:09 +0100 [thread overview]
Message-ID: <201202071753.09412.marek.vasut@gmail.com> (raw)
In-Reply-To: <1328620611-24108-5-git-send-email-robert@delien.nl>
> From: Robert Delien <robert@delien.nl>
>
> This patch prevents the needless switching on and off of PLL bypass
> mode. With this patch in place, single-stepping through the SPL is
> now possible.
Why did FSL have it in the bootlets though? Fabio, can you explain?
M
>
> Signed-off-by: Robert Delien <robert@delien.nl>
> ---
> arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c | 4 ----
> arch/arm/cpu/arm926ejs/mx28/spl_power_init.c | 24
> ------------------------ 2 files changed, 0 insertions(+), 28 deletions(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c
> b/arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c index f2fab7c..cf4361c 100644
> --- a/arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c
> +++ b/arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c
> @@ -121,10 +121,6 @@ void mx28_mem_setup_cpu_and_hbus(void)
> writeb(19 & CLKCTRL_FRAC_FRAC_MASK,
> (uint8_t *)&clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_CPU]);
>
> - /* Set CPU bypass */
> - writel(CLKCTRL_CLKSEQ_BYPASS_CPU,
> - &clkctrl_regs->hw_clkctrl_clkseq_set);
> -
> /* HBUS = 151MHz */
> writel(CLKCTRL_HBUS_DIV_MASK, &clkctrl_regs->hw_clkctrl_hbus_set);
> writel(((~3) << CLKCTRL_HBUS_DIV_OFFSET) & CLKCTRL_HBUS_DIV_MASK,
> diff --git a/arch/arm/cpu/arm926ejs/mx28/spl_power_init.c
> b/arch/arm/cpu/arm926ejs/mx28/spl_power_init.c index 380b120..5e21a1e
> 100644
> --- a/arch/arm/cpu/arm926ejs/mx28/spl_power_init.c
> +++ b/arch/arm/cpu/arm926ejs/mx28/spl_power_init.c
> @@ -30,28 +30,6 @@
>
> #include "mx28_init.h"
>
> -void mx28_power_clock2xtal(void)
> -{
> - struct mx28_clkctrl_regs *clkctrl_regs =
> - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE;
> -
> - /* Set XTAL as CPU reference clock */
> - writel(CLKCTRL_CLKSEQ_BYPASS_CPU,
> - &clkctrl_regs->hw_clkctrl_clkseq_set);
> -}
> -
> -void mx28_power_clock2pll(void)
> -{
> - struct mx28_clkctrl_regs *clkctrl_regs =
> - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE;
> -
> - writel(CLKCTRL_PLL0CTRL0_POWER,
> - &clkctrl_regs->hw_clkctrl_pll0ctrl0_set);
> - early_delay(100);
> - writel(CLKCTRL_CLKSEQ_BYPASS_CPU,
> - &clkctrl_regs->hw_clkctrl_clkseq_clr);
> -}
> -
> void mx28_power_clear_auto_restart(void)
> {
> struct mx28_rtc_regs *rtc_regs =
> @@ -606,7 +584,6 @@ void mx28_power_configure_power_source(void)
> mx28_src_power_init();
>
> mx28_5v_boot();
> - mx28_power_clock2pll();
>
> mx28_init_batt_bo();
> mx28_switch_vddd_to_dcdc_source();
> @@ -880,7 +857,6 @@ void mx28_power_init(void)
> struct mx28_power_regs *power_regs =
> (struct mx28_power_regs *)MXS_POWER_BASE;
>
> - mx28_power_clock2xtal();
> mx28_power_clear_auto_restart();
> mx28_power_set_linreg();
> mx28_power_setup_5v_detect();
next prev parent reply other threads:[~2012-02-07 16:53 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 13:16 [U-Boot] [PATCH] i.MX28: Fix ref_cpu clock setup robert at delien.nl
2012-02-07 13:16 ` [U-Boot] [PATCH 1/4 v4] Renamed mx28_register to mx28_register_32 to prepare for mx28_register_8 robert at delien.nl
2012-02-07 13:16 ` [U-Boot] [PATCH 2/4 v4] Introducing 8-bit wide register, mx28_register_8 robert at delien.nl
2012-02-07 13:16 ` [U-Boot] [PATCH 3/4 v4] Fix erroneous 32-bit access to hw_clkctrl_frac0 and hw_clkctrl_frac1 registers robert at delien.nl
2012-02-07 13:16 ` [U-Boot] [PATCH 4/4 v4] Preventing needless switching on and off PLL bypass mode, allowing allow single-stepping through the SPL robert at delien.nl
2012-02-07 16:53 ` Marek Vasut [this message]
2012-02-07 16:57 ` Fabio Estevam
2012-02-08 2:27 ` Fabio Estevam
2012-02-08 2:43 ` Marek Vasut
[not found] ` <F0D11DBEB504444BA6C8DA07A395A35A0438D1@039-SN2MPN1-012.039d.mgd.msft.net>
2012-02-08 2:46 ` Marek Vasut
2012-02-08 7:49 ` Robert Deliën
[not found] ` <F0D11DBEB504444BA6C8DA07A395A35A043906@039-SN2MPN1-012.039d.mgd.msft.net>
2012-02-08 7:51 ` Robert Deliën
2012-02-08 7:45 ` Robert Deliën
2012-02-08 7:42 ` Robert Deliën
2012-02-08 7:38 ` Robert Deliën
2012-02-07 17:17 ` [U-Boot] [PATCH] i.MX28: Fix ref_cpu clock setup Marek Vasut
2012-02-07 19:08 ` Robert Deliën
2012-02-07 19:28 ` Robert Deliën
2012-02-07 20:59 ` Marek Vasut
2012-02-08 7:32 ` Robert Deliën
2012-02-08 16:28 ` Marek Vasut
2012-02-14 12:21 ` Robert Deliën
2012-02-14 12:34 ` Marek Vasut
2012-02-14 13:27 ` Robert Deliën
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=201202071753.09412.marek.vasut@gmail.com \
--to=marek.vasut@gmail.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