summaryrefslogtreecommitdiff
path: root/include/bootcount.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 22:57:18 +0300
committerTom Rini <trini@konsulko.com>2019-12-03 02:23:08 +0300
commitf083583786913de7652312c137dd4fea5c2e291f (patch)
tree2435e9b887ed0ca4c607277656364e460533c185 /include/bootcount.h
parentc66044415989027c33876ff84491e148062dbf5c (diff)
downloadu-boot-f083583786913de7652312c137dd4fea5c2e291f.tar.xz
common: Move bootcount functions to their header file
These don't need to be in common.h so move them out. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/bootcount.h')
-rw-r--r--include/bootcount.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bootcount.h b/include/bootcount.h
index a26a385233..cd30403984 100644
--- a/include/bootcount.h
+++ b/include/bootcount.h
@@ -59,6 +59,16 @@ int dm_bootcount_set(struct udevice *dev, u32 bootcount);
#endif
+/** bootcount_store() - store the current bootcount */
+void bootcount_store(ulong);
+
+/**
+ * bootcount_load() - load the current bootcount
+ *
+ * @return bootcount, read from the appropriate location
+ */
+ulong bootcount_load(void);
+
#if defined(CONFIG_SPL_BOOTCOUNT_LIMIT) || defined(CONFIG_BOOTCOUNT_LIMIT)
#if !defined(CONFIG_SYS_BOOTCOUNT_LE) && !defined(CONFIG_SYS_BOOTCOUNT_BE)