km_arm: use filesize for erase in update command
authorValentin Longchamp <valentin.longchamp@keymile.com>
Fri, 25 May 2012 01:57:21 +0000 (01:57 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:31 +0000 (14:07 +0200)
commita0fb94f9ed865ff8073b4d493918cb78411de2b1
tree51584244c7fa44a3166d051cb206c41807424d04
parent002ec08d6d4e6bc32ac8f5d35ea4fbbc1f9138ab
km_arm: use filesize for erase in update command

We used to have an arbitrary value, which can be a problem if we have a
u-boot image that is bigger than this value.

This patch is dependant on the whole km/arm series and will be included
in the v3 of the series if there is one.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Gerlando Falauto <gerlando.falauto@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
include/configs/km/km_arm.h