arm/km: introduce bootcount env variable and clean km_arm
authorValentin Longchamp <valentin.longchamp@keymile.com>
Tue, 31 May 2011 02:12:47 +0000 (02:12 +0000)
committerU-Boot <uboot@lilith.(none)>
Tue, 31 May 2011 17:45:27 +0000 (19:45 +0200)
commit22c67d08398f0101e26fcbf75ac93433764cb4ae
treed22fdf9c9e2ff36c14d28e2f9cadc0a9c53b53ca
parentea616d4defbf90b1b0cbdf5d8425b574d606cd35
arm/km: introduce bootcount env variable and clean km_arm

This environment variable is used to set the bootcount address
for the kernel.

last_stage_init is not available for arm platforms. So the
calls to set_km_var and set_bootcount_addr are done in
misc_init_r.

Additionally some unneeded printouts were removed.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>
board/keymile/km_arm/km_arm.c
include/configs/km/km_arm.h