Commit f083583786913de7652312c137dd4fea5c2e291f

Authored by Simon Glass
Committed by Tom Rini
1 parent c660444159

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>

Showing 3 changed files with 11 additions and 4 deletions Side-by-side Diff

board/BuR/brppt1/board.c
... ... @@ -10,6 +10,7 @@
10 10 */
11 11  
12 12 #include <common.h>
  13 +#include <bootcount.h>
13 14 #include <env.h>
14 15 #include <errno.h>
15 16 #include <spl.h>
... ... @@ -59,6 +59,16 @@
59 59  
60 60 #endif
61 61  
  62 +/** bootcount_store() - store the current bootcount */
  63 +void bootcount_store(ulong);
  64 +
  65 +/**
  66 + * bootcount_load() - load the current bootcount
  67 + *
  68 + * @return bootcount, read from the appropriate location
  69 + */
  70 +ulong bootcount_load(void);
  71 +
62 72 #if defined(CONFIG_SPL_BOOTCOUNT_LIMIT) || defined(CONFIG_BOOTCOUNT_LIMIT)
63 73  
64 74 #if !defined(CONFIG_SYS_BOOTCOUNT_LE) && !defined(CONFIG_SYS_BOOTCOUNT_BE)
... ... @@ -266,10 +266,6 @@
266 266 void enable_interrupts (void);
267 267 int disable_interrupts (void);
268 268  
269   -/* $(CPU)/.../commproc.c */
270   -void bootcount_store (ulong);
271   -ulong bootcount_load (void);
272   -
273 269 /* $(CPU)/.../<eth> */
274 270 void mii_init (void);
275 271