From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc: Consolidate bootcount_{store|load} for PowerPC
Date: Tue, 27 Apr 2010 16:11:20 +0200 [thread overview]
Message-ID: <201004271611.20981.sr@denx.de> (raw)
In-Reply-To: <m2fx2hngew.fsf@ohwell.denx.de>
Hi Detlev,
On Tuesday 27 April 2010 16:01:11 Detlev Zundel wrote:
> > This patch consolidates bootcount_{store|load} for PowerPC by
> > implementing a common version in arch/powerpc/lib/bootcount.c. This
> > code is now used by all PowerPC variants that currently have these
> > functions implemented.
> >
> > The functions now use the proper IO-accessor functions to read/write the
> > values.
> >
> > This code also supports two different bootcount versions:
> >
> > a) Use 2 seperate words (2 * 32bit) to store the bootcounter
> > b) Use only 1 word (2* 16bit) to store the bootcounter
> >
> > Version b) was already used by MPC5xxx.
> >
> > Signed-off-by: Stefan Roese <sr@denx.de>
> > Cc: Michael Zaidman <michael.zaidman@gmail.com>
> > Cc: Wolfgang Denk <wd@denx.de>
> > Cc: Kim Phillips <kim.phillips@freescale.com>
> > Cc: Anatolij Gustschin <agust@denx.de>
>
> Cool, thanks!
>
> I have only a cosmetic suggestion - can we rename the option
> CONFIG_SYS_BOOTCOUNT_USE_32BIT to CONFIG_SYS_BOOTCOUNT_SINGLEWORD?
> According to your documentation this would describe the situation
> somewhat closer.
Right. This name is better. I'll send an updated patch soon.
> Apart from that:
>
> Acked-by: Detlev Zundel <dzu@denx.de>
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
next prev parent reply other threads:[~2010-04-27 14:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 14:28 [U-Boot] [PATCH] powerpc: Consolidate bootcount_{store|load} for PowerPC Stefan Roese
2010-04-27 14:01 ` Detlev Zundel
2010-04-27 14:11 ` Stefan Roese [this message]
2010-04-27 15:56 ` Michael Zaidman
2010-04-28 7:14 ` Stefan Roese
2010-04-28 8:06 ` Michael Zaidman
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=201004271611.20981.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.