From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valentin Longchamp Date: Mon, 04 Jun 2012 14:55:52 +0200 Subject: [U-Boot] [PATCH v2] Consolidate bootcount code into drivers/bootcount In-Reply-To: <1338813539-28831-1-git-send-email-sr@denx.de> References: <1338813539-28831-1-git-send-email-sr@denx.de> Message-ID: <4FCCB058.8050706@keymile.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, On 06/04/2012 02:38 PM, Stefan Roese wrote: > This patch moves all bootcount implementations into a common > directory: drivers/bootcount. The generic bootcount driver > is now usable not only by powerpc platforms, but others as well. I have tested it on km_kirkwood (km_arm) with the bootcount_ram driver and it works as expected on this platform. Tested-by: Valentin Longchamp > > Signed-off-by: Stefan Roese > Cc: Heiko Schocher > Cc: Valentin Longchamp > Cc: Christian Riesch > Cc: Manfred Rudigier > Cc: Mike Frysinger > Cc: Rob Herring > Cc: Reinhard Meyer > --- > v2: > - Added CONFIG_BOOTCOUNT_LE to bootcount_davinci.c and enabled it > in calimain.h to select little-endian accessors. > > Makefile | 3 + > arch/arm/cpu/arm926ejs/at91/cpu.c | 26 ------- > arch/arm/cpu/armv7/highbank/Makefile | 2 +- > arch/arm/cpu/armv7/highbank/bootcount.c | 36 ---------- > arch/arm/cpu/ixp/cpu.c | 22 ------ > arch/powerpc/lib/Makefile | 1 - > board/enbw/enbw_cmc/enbw_cmc.c | 29 -------- > board/keymile/km_arm/km_arm.c | 51 -------------- > board/omicron/calimain/calimain.c | 29 -------- > drivers/bootcount/Makefile | 47 +++++++++++++ > .../powerpc/lib => drivers/bootcount}/bootcount.c | 10 ++- > drivers/bootcount/bootcount_at91.c | 43 ++++++++++++ > .../bootcount/bootcount_blackfin.c | 0 > drivers/bootcount/bootcount_davinci.c | 72 ++++++++++++++++++++ > drivers/bootcount/bootcount_ram.c | 72 ++++++++++++++++++++ > include/configs/calimain.h | 1 + > include/configs/km/km_arm.h | 2 + > 17 files changed, 248 insertions(+), 198 deletions(-) > delete mode 100644 arch/arm/cpu/armv7/highbank/bootcount.c > create mode 100644 drivers/bootcount/Makefile > rename {arch/powerpc/lib => drivers/bootcount}/bootcount.c (92%) > create mode 100644 drivers/bootcount/bootcount_at91.c > rename arch/blackfin/cpu/bootcount.c => drivers/bootcount/bootcount_blackfin.c (100%) > create mode 100644 drivers/bootcount/bootcount_davinci.c > create mode 100644 drivers/bootcount/bootcount_ram.c >