All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 04/10] powerpc, 8xx: Implement GLL2 ERRATA
Date: Thu, 6 Jul 2017 11:43:01 +0200	[thread overview]
Message-ID: <595E0625.1010805@denx.de> (raw)
In-Reply-To: <466a431b5430548a018c21222080ed4040596147.1499329461.git.christophe.leroy@c-s.fr>

Hello Christophe,

Am 06.07.2017 um 10:33 schrieb Christophe Leroy:
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> ---
>   arch/powerpc/cpu/mpc8xx/cpu_init.c | 8 ++++++++
>   1 file changed, 8 insertions(+)

Reviewed-by: Heiko Schocher <hs@denx.de>

nitpick only

> diff --git a/arch/powerpc/cpu/mpc8xx/cpu_init.c b/arch/powerpc/cpu/mpc8xx/cpu_init.c
> index cf1280983a..52406e8483 100644
> --- a/arch/powerpc/cpu/mpc8xx/cpu_init.c
> +++ b/arch/powerpc/cpu/mpc8xx/cpu_init.c
> @@ -51,6 +51,14 @@ void cpu_init_f(immap_t __iomem *immr)
>   	clrsetbits_be32(&immr->im_clkrst.car_sccr, ~SCCR_MASK,
>   			CONFIG_SYS_SCCR);
>
> +	/* BUG MPC866 GLL2 consideration */
> +	reg = in_be32(&immr->im_clkrst.car_sccr);
> +	/* probably we use the mode 1:2:1 */
> +	if ((reg & 0x00060000) == 0x00020000) {
> +		clrbits_be32(&immr->im_clkrst.car_sccr, 0x00060000);
> +		setbits_be32(&immr->im_clkrst.car_sccr, 0x00020000);

You may can introduce defines for the magic values here.

> +	}
> +
>   	/* PLL (CPU clock) settings (15-30) */
>
>   	out_be32(&immr->im_clkrstk.cark_plprcrk, KAPWR_KEY);
>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2017-07-06  9:43 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-06  8:33 [U-Boot] [PATCH v2 0/10] powerpc, 8xx: Modernise the 8xx Christophe Leroy
2017-07-06  8:33 ` [U-Boot] [PATCH v2 01/10] powerpc, 8xx: move immap.c in arch/powerpc/cpu/mpc8xx/ Christophe Leroy
2017-07-06  8:41   ` Christophe LEROY
2017-07-06  9:40   ` Heiko Schocher
2017-07-09  0:24   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 02/10] powerpc, 8xx: move specific reginfo Christophe Leroy
2017-07-06  9:40   ` Heiko Schocher
2017-07-09  0:24   ` [U-Boot] [U-Boot,v2,02/10] " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 03/10] powerpc, 8xx: Use IO accessors to access IO memory Christophe Leroy
2017-07-06  9:41   ` Heiko Schocher
2017-07-09  0:24   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 04/10] powerpc, 8xx: Implement GLL2 ERRATA Christophe Leroy
2017-07-06  9:43   ` Heiko Schocher [this message]
2017-07-06 10:56   ` Wolfgang Denk
2017-07-06 11:12     ` Christophe LEROY
2017-07-06 11:18       ` Christophe LEROY
2017-07-06 11:20       ` Wolfgang Denk
2017-07-06  8:33 ` [U-Boot] [PATCH v2 05/10] powerpc, 8xx: Handle checkpatch errors and some of the warnings/checks Christophe Leroy
2017-07-06  9:43   ` Heiko Schocher
2017-07-09  0:24   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 06/10] powerpc, 8xx: Properly set CPM frequency in the device tree Christophe Leroy
2017-07-06  9:46   ` Heiko Schocher
2017-07-09  0:25   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 07/10] powerpc, 8xx: Migrate to Kconfig Christophe Leroy
2017-07-06  8:57   ` Bin Meng
2017-07-06  9:47   ` Heiko Schocher
2017-07-09  0:25   ` [U-Boot] [U-Boot,v2,07/10] " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 08/10] powerpc, 8xx: move FEC Ethernet driver in drivers/net Christophe Leroy
2017-07-06  8:54   ` Bin Meng
2017-07-06 12:02     ` Tom Rini
2017-07-09  0:25   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 09/10] powerpc, 8xx: move SPI driver to drivers/spi/ Christophe Leroy
2017-07-09  0:25   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-06  8:33 ` [U-Boot] [PATCH v2 10/10] powerpc, 8xx: move Serial driver to drivers/serial/ Christophe Leroy
2017-07-09  0:25   ` [U-Boot] [U-Boot, v2, " Tom Rini

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=595E0625.1010805@denx.de \
    --to=hs@denx.de \
    --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 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.