All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] ARM: fix s3c24x0 timer code
Date: Thu, 08 Dec 2011 13:58:15 +0100	[thread overview]
Message-ID: <4EE0B467.5070806@gmail.com> (raw)
In-Reply-To: <1323347003-7711-1-git-send-email-d.mueller@elsoft.ch>

Dear David M?ller,

Am 08.12.2011 13:23, schrieb David M?ller:
> This patch fixes the s3c24x0 timer code to work with the ARM
> relocation feature.
> 
> Signed-off-by: David Mueller <d.mueller@elsoft.ch>
> 
> ---
>  arch/arm/cpu/arm920t/s3c24x0/timer.c |   40 +++++++++++++++------------------
>  arch/arm/include/asm/global_data.h   |    7 ++++++
>  2 files changed, 25 insertions(+), 22 deletions(-)
> 
> Changes for V2:
>  - rebase to master
> 

<snip>

> diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
> index c3ff789..02420d8 100644
> --- a/arch/arm/include/asm/global_data.h
> +++ b/arch/arm/include/asm/global_data.h
> @@ -67,6 +67,13 @@ typedef	struct	global_data {
>  #ifdef CONFIG_IXP425
>  	unsigned long	timestamp;
>  #endif
> +#ifdef CONFIG_S3C24X0
> +	/* "static data" needed by s3c24x0 timer.c */
> +	unsigned long	timer_load_val;
> +	unsigned long	timer_clk;
> +	unsigned long	timestamp;
> +	unsigned long	lastdec;
> +#endif

I tend to NAK this. There are currently values defined ('#ifdef
CONFIG_ARM') which should work out for s3c24x0 timer too.
E.g. your 'lastdec' corresponds to the 'lastinc' there, timestamp could
be timer_reset_value (but maybe we should include the 'timestamp'
defined by CONFIG_IXP425 into the CONFIG_ARM?), timer_clk could be
timer_rate_hz ...
I guess the arm920t/at91 timer is not that much different to yours (by
means of logic), maybe have a look for that driver?

Albert, how do you think about this?

best regards

Andreas Bie?mann

  reply	other threads:[~2011-12-08 12:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11 11:33 [U-Boot] timer problem with new ARM relocation feature "David Müller (ELSOFT AG)"
2010-11-29 15:33 ` [U-Boot] [PATCH] fix s3c24x0 timer code "David Müller (ELSOFT AG)"
2011-12-06 21:22   ` Albert ARIBAUD
2010-11-29 15:49 ` [U-Boot] [PATCH] fix s3c2410_nand timing default values "David Müller (ELSOFT AG)"
2010-12-07  0:32   ` [U-Boot] " Scott Wood
2011-12-08 12:23 ` [U-Boot] [PATCH V2] ARM: fix s3c24x0 timer code David Müller
2011-12-08 12:58   ` Andreas Bießmann [this message]
2011-12-19  8:54     ` Albert ARIBAUD
2011-12-22 11:16 ` [U-Boot] [PATCH V3] ARM: fix s3c2410 " David Müller
2012-01-09  7:23   ` [U-Boot] [PING] " "David Müller (ELSOFT AG)"
2012-02-09  7:29     ` "David Müller (ELSOFT AG)"
2012-01-09 10:19   ` [U-Boot] " Andreas Bießmann
2012-02-19 11:59   ` Albert ARIBAUD
2012-02-21  1:24     ` Minkyu Kang
2012-03-05  3:13       ` Minkyu Kang
2011-12-22 11:19 ` [U-Boot] [PATCH] ARM: activate DISPLAY_CPUINFO for VCMA9 + SMDK2410 board David Müller
2012-01-09  7:23   ` [U-Boot] [PING] " "David Müller (ELSOFT AG)"
2012-02-03 19:43     ` Albert ARIBAUD
2012-02-06  1:53       ` Minkyu Kang
2012-02-06 21:53   ` [U-Boot] " Albert ARIBAUD

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=4EE0B467.5070806@gmail.com \
    --to=andreas.devel@googlemail.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 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.