]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/bootcount.h
3 * Stefan Roese, DENX Software Engineering, sr@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/byteorder.h>
12 #if !defined(CONFIG_SYS_BOOTCOUNT_LE) && !defined(CONFIG_SYS_BOOTCOUNT_BE)
13 # if __BYTE_ORDER == __LITTLE_ENDIAN
14 # define CONFIG_SYS_BOOTCOUNT_LE
16 # define CONFIG_SYS_BOOTCOUNT_BE
20 #ifdef CONFIG_SYS_BOOTCOUNT_LE
21 static inline void raw_bootcount_store(volatile u32
*addr
, u32 data
)
26 static inline u32
raw_bootcount_load(volatile u32
*addr
)
31 static inline void raw_bootcount_store(volatile u32
*addr
, u32 data
)
36 static inline u32
raw_bootcount_load(volatile u32
*addr
)