Commit f083583786913de7652312c137dd4fea5c2e291f
Committed by
Tom Rini
1 parent
c660444159
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
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
include/bootcount.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) |
include/common.h