public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/4] arm: mvebu: Update CBAR with SOC regs base
Date: Fri, 15 May 2015 09:01:16 +0200	[thread overview]
Message-ID: <555599BC.2020109@denx.de> (raw)
In-Reply-To: <1431559000-21544-3-git-send-email-kevin.smith@elecsyscorp.com>

On 14.05.2015 01:17, Kevin Smith wrote:
> SMP-enabled Linux kernels read the CBAR register in CP15 to find
> the address of the SCU registers.  After remapping internal
> registers, also update the CBAR so the kernel can find them.

Thanks Kevin. Only some coding style related comments below:

> Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com>
> ---
>   arch/arm/mach-mvebu/cpu.c | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
> index 417fc35..2970e07 100644
> --- a/arch/arm/mach-mvebu/cpu.c
> +++ b/arch/arm/mach-mvebu/cpu.c
> @@ -161,10 +161,17 @@ static void update_sdram_window_sizes(void)
>   }
>
>   #ifdef CONFIG_ARCH_CPU_INIT
> +static void set_cbar (u32 addr)
> +{
> +    asm ("mcr p15, 4, %0, c15, c0" : : "r" (addr));
> +}

Indentation with tabs please. And no space before the "(".

> +
> +
>   int arch_cpu_init(void)
>   {
>   	/* Linux expects the internal registers to be at 0xf1000000 */
>   	writel(SOC_REGS_PHY_BASE, INTREG_BASE_ADDR_REG);
> +	set_cbar (SOC_REGS_PHY_BASE + 0xC000);

No space before the "(" please. checkpatch should complain about these 
minor issues btw. So its always recommended to run it before sending the 
patches to the list.

Please send an updated version and add my

Acked-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

  reply	other threads:[~2015-05-15  7:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 23:16 [U-Boot] [PATCH v2 0/4] arm: mvebu: Allow DB-88F6820-GP to boot Linux Kevin Smith
2015-05-13 23:17 ` [U-Boot] [PATCH v2 1/4] arm: mvebu: Disable L2 cache before enabling d-cache Kevin Smith
2015-05-13 23:17 ` [U-Boot] [PATCH v2 2/4] arm: mvebu: Update CBAR with SOC regs base Kevin Smith
2015-05-15  7:01   ` Stefan Roese [this message]
2015-05-13 23:17 ` [U-Boot] [PATCH v2 3/4] mv-common.h: Include support for device trees Kevin Smith
2015-05-15  7:02   ` Stefan Roese
2015-05-13 23:17 ` [U-Boot] [PATCH v2 4/4] db-88f6820-gp.h: Load data blobs into lower memory Kevin Smith
2015-05-15  7:03   ` Stefan Roese

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=555599BC.2020109@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox