[U-Boot] [PATCH] Consolidate bootcount code into drivers/bootcount

2012-06-01 Thread Stefan Roese
This patch moves all bootcount implementations into a common directory: drivers/bootcount. The generic bootcount driver (bootcount.c) is now usable not only by powerpc platforms, but others as well. Highbank is already moved to this generic code. For all other non-generic implementations, SoC

Re: [U-Boot] [PATCH] Consolidate bootcount code into drivers/bootcount

2012-06-01 Thread Christian Riesch
Hi Stefan, On Fri, Jun 1, 2012 at 11:52 AM, Stefan Roese s...@denx.de wrote: This patch moves all bootcount implementations into a common directory: drivers/bootcount. The generic bootcount driver (bootcount.c) is now usable not only by powerpc platforms, but others as well. Highbank is

Re: [U-Boot] [PATCH] Consolidate bootcount code into drivers/bootcount

2012-06-01 Thread Stefan Roese
Hi Christian, On Friday 01 June 2012 14:51:32 Christian Riesch wrote: +void bootcount_store(ulong a) +{ + struct davinci_rtc *reg = + (struct davinci_rtc *)CONFIG_SYS_BOOTCOUNT_ADDR; + + /* +* write RTC kick register to enable write +* for