summaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2013-07-25 06:43:11 +0200
committerMarek Vasut <marex@denx.de>2013-08-26 21:56:34 +0200
commit815c30b2b6f1920cfdb9d6c10eb1359129377c9e (patch)
treee7c3ea65bc7083249d177113d97a5897648abe18 /include/dfu.h
parenteaf3e613ea6f0dc95c94a93997ad62785fe2969c (diff)
dfu, nand, ubi: add partubi alt settings for updating ubi partition
updating an ubi partition needs a completely erased mtd partition, see: http://lists.infradead.org/pipermail/linux-mtd/2011-May/035416.html So, add partubi alt setting for the dfu_alt_info environment variable to mark this partition as an ubi partition. In case we update an ubi partition, we erase after flashing the image into the partition, the remaining sektors. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: Tom Rini <trini@ti.com> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 1d4006de8b..47b90559d5 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -47,6 +47,8 @@ struct nand_internal_data {
unsigned int dev;
unsigned int part;
+ /* for nand/ubi use */
+ unsigned int ubi;
};
static inline unsigned int get_mmc_blk_size(int dev)