mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-01 17:12:11 +00:00
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>
This commit is contained in:
parent
c660444159
commit
f083583786
3 changed files with 11 additions and 4 deletions
|
@ -10,6 +10,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <bootcount.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -59,6 +59,16 @@ int dm_bootcount_set(struct udevice *dev, u32 bootcount);
|
||||||
|
|
||||||
#endif
|
#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_SPL_BOOTCOUNT_LIMIT) || defined(CONFIG_BOOTCOUNT_LIMIT)
|
||||||
|
|
||||||
#if !defined(CONFIG_SYS_BOOTCOUNT_LE) && !defined(CONFIG_SYS_BOOTCOUNT_BE)
|
#if !defined(CONFIG_SYS_BOOTCOUNT_LE) && !defined(CONFIG_SYS_BOOTCOUNT_BE)
|
||||||
|
|
|
@ -266,10 +266,6 @@ unsigned long timer_get_us(void);
|
||||||
void enable_interrupts (void);
|
void enable_interrupts (void);
|
||||||
int disable_interrupts (void);
|
int disable_interrupts (void);
|
||||||
|
|
||||||
/* $(CPU)/.../commproc.c */
|
|
||||||
void bootcount_store (ulong);
|
|
||||||
ulong bootcount_load (void);
|
|
||||||
|
|
||||||
/* $(CPU)/.../<eth> */
|
/* $(CPU)/.../<eth> */
|
||||||
void mii_init (void);
|
void mii_init (void);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue