All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 1/2] APM821xx: Add CPU support
Date: Tue, 28 Sep 2010 12:54:12 +0200	[thread overview]
Message-ID: <201009281254.12602.sr@denx.de> (raw)
In-Reply-To: <1285616824-6427-1-git-send-email-tmarri@apm.com>

Hi Marri,

On Monday 27 September 2010 21:47:04 tmarri at apm.com wrote:
> From: Tirumala Marri <tmarri@apm.com>
> 
> APM821XX is a new line of SoCs which are derivatives of
> PPC44X family of processors. This patch adds support of CPU, cache,
> tlb, 32k ocm, bootstraps, PLB and AHB bus.

Hopefully the last (coding style related) comments below.

<snip>

> +++ b/arch/powerpc/cpu/ppc4xx/cpu.c
> @@ -250,6 +250,20 @@ static char *bootstrap_str[] = {
> 
>  };
>  static char bootstrap_char[] = { 'A', 'B', 'C', 'D', 'E', 'G', 'F', 'H' };
>  #endif
> 
> +#if defined(CONFIG_APM821XX)
> +#define SDR0_PINSTP_SHIFT       29
> +static char *bootstrap_str[] = {
> +       "RESERVED",
> +       "RESERVED",
> +       "RESERVED",
> +       "NAND (8 bits)",
> +       "NOR  (8 bits)",
> +       "NOR  (8 bits) w/PLL Bypassed",
> +       "I2C (Addr 0x54)",
> +       "I2C (Addr 0x52)",
> +};

Indentation with tabs instead of spaces please.

> +++ b/arch/powerpc/include/asm/apm821xx.h
> @@ -0,0 +1,70 @@
> +/*
> + * Copyright (c) 2010, Applied Micro Circuits Corporation
> + * Author: Tirumala R Marri <tmarri@apm.com>
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#ifndef _APM821XX_H_
> +#define _APM821XX_H_
> +
> +#define CONFIG_SDRAM_PPC4xx_IBM_DDR2	/* IBM DDR(2) controller */

Insert empty line here.

> +/* Memory mapped registers */
> +#define CONFIG_SYS_PERIPHERAL_BASE      0xEF600000

Please use tab instead of spaces for indentation.

> +#define CONFIG_SYS_NS16550_COM1	(CONFIG_SYS_PERIPHERAL_BASE + 0x0200)
> +#define CONFIG_SYS_NS16550_COM2	(CONFIG_SYS_PERIPHERAL_BASE + 0x0300)
> +
> +#define GPIO0_BASE		(CONFIG_SYS_PERIPHERAL_BASE + 0x0700)
> +
> +#define SDR0_SRST0_DMC		0x00200000
> +#define SDR0_SRST1_AHB		0x00000040      /* PLB4XAHB bridge */

Again, empty would look better here.

> +/* AHB config. */
> +#define AHB_TOP                 0xA4
> +#define AHB_BOT                 0xA5

Tabs vs. spaces again.

> +
> +

Remove one of those empty lines.

> +#define PLLSYS0_FWD_DIV_A_MASK	0x000000f0	/* Fwd Div A */
> +#define PLLSYS0_FWD_DIV_B_MASK	0x0000000f	/* Fwd Div B */
> +#define PLLSYS0_FB_DIV_MASK	0x0000ff00	/* Feedback divisor */
> +#define PLLSYS0_OPB_DIV_MASK	0x0c000000	/* OPB Divisor */
> +#define PLLSYS0_EPB_DIV_MASK    0x00000300      /* EPB divisor */

Tabs vs spaces again. Please fix globally and resubmit. Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

      reply	other threads:[~2010-09-28 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-27 19:47 [U-Boot] [PATCH v5 1/2] APM821xx: Add CPU support tmarri at apm.com
2010-09-28 10:54 ` Stefan Roese [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=201009281254.12602.sr@denx.de \
    --to=sr@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.