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 1/7] arm: Add Support for Marvell ARMADA 100 Familiy SoCs.
Date: Tue, 30 Nov 2010 08:18:28 +0100	[thread overview]
Message-ID: <4CF4A544.8090307@denx.de> (raw)
In-Reply-To: <1291114965-17100-2-git-send-email-prafulla@marvell.com>

Hello Prafulla,

Prafulla Wadaskar wrote:
> From: Prafulla WADASKAR <prafulla@marvell.com>
> 
> ARMADA 100 Family processors are highly integrated SoCs
> based on Sheeva_88SV331x-v5 PJ1 cpu core.
> Ref: http://www.marvell.com/products/processors/applications/armada_100
> 
> SoC versions Supported:
> 1) ARMADA168/88AP168	(Aspen P)
> 2) ARMADA166/88AP166	(Aspen M)
> 3) ARMADA162/88AP162	(Aspen L)
> 
> Contributors:
> Eric Miao <eric.y.miao@marvell.com>
> Lei Wen <leiwen@marvell.com>
> Mahavir Jain <mjain@marvell.com>
> 
> Signed-off-by: Mahavir Jain <mjain@marvell.com>
> Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
> ---
> 
> Change log V2:
> 1. C-struct used for dram.c
> 2. lib declaration changed from .a to .o
> 3. Implemented review feedback for v1
>  
>  arch/arm/cpu/arm926ejs/armada100/Makefile       |   46 ++++++
>  arch/arm/cpu/arm926ejs/armada100/cpu.c          |   92 +++++++++++
>  arch/arm/cpu/arm926ejs/armada100/dram.c         |  131 +++++++++++++++
>  arch/arm/cpu/arm926ejs/armada100/timer.c        |  199 +++++++++++++++++++++++
>  arch/arm/include/asm/arch-armada100/armada100.h |  120 ++++++++++++++
>  arch/arm/include/asm/arch-armada100/cpu.h       |   53 ++++++
>  6 files changed, 641 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/cpu/arm926ejs/armada100/Makefile
>  create mode 100644 arch/arm/cpu/arm926ejs/armada100/cpu.c
>  create mode 100644 arch/arm/cpu/arm926ejs/armada100/dram.c
>  create mode 100644 arch/arm/cpu/arm926ejs/armada100/timer.c
>  create mode 100644 arch/arm/include/asm/arch-armada100/armada100.h
>  create mode 100644 arch/arm/include/asm/arch-armada100/cpu.h
> 
[...]
> diff --git a/arch/arm/cpu/arm926ejs/armada100/timer.c b/arch/arm/cpu/arm926ejs/armada100/timer.c
> new file mode 100644
> index 0000000..b9ef8af
> --- /dev/null
> +++ b/arch/arm/cpu/arm926ejs/armada100/timer.c
> @@ -0,0 +1,199 @@
> +/*
> + * (C) Copyright 2010
[...]
> +#define READ_TIMER		({volatile int loop=100; \
> +				writel(COUNT_RD_REQ, &armd1timers->cvwr); \
> +				while (loop--); \
> +				readl(&armd1timers->cvwr);})
> +static ulong timestamp;
> +static ulong lastdec;

This local vars are stored in bss, which is not valid before relocation.
And timer_init() is called before relocation and changes this vars.

For an example how to change this issue, look here:
http://git.denx.de/?p=u-boot.git;a=commit;h=5dca710a3d7703e41da0e9894f2d71f9e25bea6b

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2010-11-30  7:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-30 11:02 [U-Boot] [PATCH v2 0/7] Add Marvell New Soc Support ARMADA100 Prafulla Wadaskar
2010-11-30 11:02 ` [U-Boot] [PATCH v2 1/7] arm: Add Support for Marvell ARMADA 100 Familiy SoCs Prafulla Wadaskar
2010-11-30  7:18   ` Heiko Schocher [this message]
2010-11-30 13:26     ` Prafulla Wadaskar
2010-11-30 11:02   ` [U-Boot] [PATCH v2 2/7] gpio: Add Multi-Function-Pin configuration driver for Marvell SoCs Prafulla Wadaskar
2010-11-30 11:02     ` [U-Boot] [PATCH v2 3/7] add Multi Function Pin configuration support for ARMADA100 Prafulla Wadaskar
2010-11-30 11:02       ` [U-Boot] [PATCH v2 4/7] Serial: ns16550: Add support for CONFIG_SYS_NS16550_IER macro Prafulla Wadaskar
2010-11-30 11:02         ` [U-Boot] [PATCH v2 5/7] Serial: Add UART support for Marvell ARMADA 100 SoCs Prafulla Wadaskar
2010-11-30 11:02           ` [U-Boot] [PATCH v2 6/7] mv-common.h: Add support for ARMADA100 Platforms Prafulla Wadaskar
2010-11-30 11:02             ` [U-Boot] [PATCH v2 7/7] Armada100: Add Board Support for Marvell Aspenite-DB Prafulla Wadaskar
2010-11-30  9:38               ` Lei Wen
2010-11-30  9:50                 ` Prafulla Wadaskar
2010-12-01  7:44         ` [U-Boot] [PATCH v2 4/7] Serial: ns16550: Add support for CONFIG_SYS_NS16550_IER macro Wolfgang Denk
2010-12-01  7:52           ` Prafulla Wadaskar

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=4CF4A544.8090307@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.