diff options
author | Simon Glass <sjg@chromium.org> | 2019-11-14 22:57:17 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-03 02:23:08 +0300 |
commit | c66044415989027c33876ff84491e148062dbf5c (patch) | |
tree | 6e6be967379258f6439f224f7df1ec8d916e328a /common | |
parent | 3db7110857524cf1b7d0a374c1ebcde8a2680de0 (diff) | |
download | u-boot-c66044415989027c33876ff84491e148062dbf5c.tar.xz |
spl: bootcount: Move code out of header file
It is not good practice to write code in a header file. If it is included
multiple times then the code can cause duplicate functions.
Move the bootcount_store() and bootcount_load() functions into SPL.
Note: bootcount is a bit strange in that it uses driver model but does not
define proper drivers. This should be fixed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index cc5507f757..a2ef13a41c 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -830,3 +830,14 @@ ulong spl_relocate_stack_gd(void) return 0; #endif } + +#if defined(CONFIG_BOOTCOUNT_LIMIT) && !defined(CONFIG_SPL_BOOTCOUNT_LIMIT) +void bootcount_store(ulong a) +{ +} + +ulong bootcount_load(void) +{ + return 0; +} +#endif |