aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src/mtd.h
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-08-19 08:31:23 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-08-19 08:31:23 +0000
commit20fac016e432cf384289b3fefadf3f4909924faf (patch)
tree2eac7cea31b2af956fe1a2cb5b2624697efe30e8 /package/system/mtd/src/mtd.h
parent996399ba08e4a3c372e4029f0d76a495c7f46f7b (diff)
downloadupstream-20fac016e432cf384289b3fefadf3f4909924faf.tar.gz
upstream-20fac016e432cf384289b3fefadf3f4909924faf.tar.bz2
upstream-20fac016e432cf384289b3fefadf3f4909924faf.zip
mvebu: add support for the Linksys boot counter
The u-boot boot counter was never reset after a successful boot, which sometimes could make some variables become out of sync. This patch adds support for the boot counter and enables auto_recovery unconditionally. Signed-off-by: Jonas Gorski <jogo@openwrt.org> Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 46690
Diffstat (limited to 'package/system/mtd/src/mtd.h')
-rw-r--r--package/system/mtd/src/mtd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/system/mtd/src/mtd.h b/package/system/mtd/src/mtd.h
index d94f394396..fb37b8b9fa 100644
--- a/package/system/mtd/src/mtd.h
+++ b/package/system/mtd/src/mtd.h
@@ -27,4 +27,5 @@ extern int trx_fixup(int fd, const char *name) __attribute__ ((weak));
extern int trx_check(int imagefd, const char *mtd, char *buf, int *len) __attribute__ ((weak));
extern int mtd_fixtrx(const char *mtd, size_t offset) __attribute__ ((weak));
extern int mtd_fixseama(const char *mtd, size_t offset) __attribute__ ((weak));
+extern int mtd_resetbc(const char *mtd) __attribute__ ((weak));
#endif /* __mtd_h */