projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
global: Migrate CONFIG_STACKBASE to CFG
[platform/kernel/u-boot.git]
/
include
/
bootcount.h
diff --git
a/include/bootcount.h
b/include/bootcount.h
index
796b237
..
bfa5d46
100644
(file)
--- a/
include/bootcount.h
+++ b/
include/bootcount.h
@@
-45,7
+45,7
@@
struct bootcount_ops {
*
* @dev: Device to read from
* @bootcount: Place to put the current bootcount
*
* @dev: Device to read from
* @bootcount: Place to put the current bootcount
- *
@return
0 if OK, -ve on error
+ *
Return:
0 if OK, -ve on error
*/
int dm_bootcount_get(struct udevice *dev, u32 *bootcount);
*/
int dm_bootcount_get(struct udevice *dev, u32 *bootcount);
@@
-54,7
+54,7
@@
int dm_bootcount_get(struct udevice *dev, u32 *bootcount);
*
* @dev: Device to read from
* @bootcount: Value to be written to the backing storage
*
* @dev: Device to read from
* @bootcount: Value to be written to the backing storage
- *
@return
0 if OK, -ve on error
+ *
Return:
0 if OK, -ve on error
*/
int dm_bootcount_set(struct udevice *dev, u32 bootcount);
*/
int dm_bootcount_set(struct udevice *dev, u32 bootcount);
@@
-66,20
+66,12
@@
void bootcount_store(ulong);
/**
* bootcount_load() - load the current bootcount
*
/**
* bootcount_load() - load the current bootcount
*
- *
@return
bootcount, read from the appropriate location
+ *
Return:
bootcount, read from the appropriate location
*/
ulong bootcount_load(void);
#if defined(CONFIG_SPL_BOOTCOUNT_LIMIT) || defined(CONFIG_TPL_BOOTCOUNT_LIMIT) || defined(CONFIG_BOOTCOUNT_LIMIT)
*/
ulong bootcount_load(void);
#if defined(CONFIG_SPL_BOOTCOUNT_LIMIT) || defined(CONFIG_TPL_BOOTCOUNT_LIMIT) || defined(CONFIG_BOOTCOUNT_LIMIT)
-#if !defined(CONFIG_SYS_BOOTCOUNT_LE) && !defined(CONFIG_SYS_BOOTCOUNT_BE)
-# if __BYTE_ORDER == __LITTLE_ENDIAN
-# define CONFIG_SYS_BOOTCOUNT_LE
-# else
-# define CONFIG_SYS_BOOTCOUNT_BE
-# endif
-#endif
-
#ifdef CONFIG_SYS_BOOTCOUNT_LE
static inline void raw_bootcount_store(volatile u32 *addr, u32 data)
{
#ifdef CONFIG_SYS_BOOTCOUNT_LE
static inline void raw_bootcount_store(volatile u32 *addr, u32 data)
{