[U-Boot] [PATCH v2] Consolidate bootcount code into drivers/bootcount
Christian Riesch
christian.riesch at omicron.at
Mon Jun 4 15:39:53 CEST 2012
Hi Stefan,
On Mon, Jun 4, 2012 at 2:38 PM, Stefan Roese <sr at denx.de> 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.
For the calimain board
Tested-by: Christian Riesch <christian.riesch at omicron.at>
Thanks, Christian
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Heiko Schocher <hs at denx.de>
> Cc: Valentin Longchamp <valentin.longchamp at keymile.com>
> Cc: Christian Riesch <christian.riesch at omicron.at>
> Cc: Manfred Rudigier <manfred.rudigier at omicron.at>
> Cc: Mike Frysinger <vapier at gentoo.org>
> Cc: Rob Herring <rob.herring at calxeda.com>
> Cc: Reinhard Meyer <reinhard.meyer at emk-elektronik.de>
> ---
> 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
More information about the U-Boot
mailing list