]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: Move bootcount functions to their header file
authorSimon Glass <sjg@chromium.org>
Thu, 14 Nov 2019 19:57:18 +0000 (12:57 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 2 Dec 2019 23:23:08 +0000 (18:23 -0500)
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>
board/BuR/brppt1/board.c
include/bootcount.h
include/common.h

index ef4f5c950140636e450ca92d5a7a8565024f1a30..e0d1707ac13e2a1c4ab7772a0b72ed0146c3317e 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <bootcount.h>
 #include <env.h>
 #include <errno.h>
 #include <spl.h>
index a26a3852338e07a43aa8bdf24fc562ffd0322907..cd304039849ba66e16f62656568aedd1e3772741 100644 (file)
@@ -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)
index 9c454fb1c8389730e209492c404327109fdb5729..97b661181b0c7ead9c415cd52d7797526627b228 100644 (file)
@@ -266,10 +266,6 @@ unsigned long timer_get_us(void);
 void   enable_interrupts  (void);
 int    disable_interrupts (void);
 
-/* $(CPU)/.../commproc.c */
-void   bootcount_store (ulong);
-ulong  bootcount_load (void);
-
 /* $(CPU)/.../<eth> */
 void mii_init (void);