[POWERPC] add U-Boot bootcount driver.

Wolfram Sang w.sang at pengutronix.de
Thu Dec 17 20:34:34 EST 2009

On Wed, Dec 16, 2009 at 02:47:30AM +0300, Vitaly Bordug wrote:
> From: Heiko Schocher <hs at denx.de>
> This driver provides (read/write) access to the
> U-Boot bootcounter via PROC FS or sysFS.
> in u-boot, it uses a 8 byte mem area (it must hold the value over a
> soft reset of course), for storing a bootcounter (it counts many soft
> resets are done, on hard reset it starts with 0). If the bootcountvalue
> exceeds the value in the env variable "bootlimit", and alternative
> bootcmd stored in the env variable "altbootcmd" is run.

Hmm, both in my inbox and in patchwork, the patch seems line-wrapped.
Also, there are a few printk without loglevel. As probe has access to
a device structure, dev_* should be a nice option here.



Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20091217/bf5a279e/attachment.pgp>

More information about the Linuxppc-dev mailing list