| * Stefan Roese, DENX Software Engineering, sr@denx.de. |
| * SPDX-License-Identifier: GPL-2.0+ |
| #include <asm/byteorder.h> |
| #if !defined(CONFIG_SYS_BOOTCOUNT_LE) && !defined(CONFIG_SYS_BOOTCOUNT_BE) |
| # if __BYTE_ORDER == __LITTLE_ENDIAN |
| # define CONFIG_SYS_BOOTCOUNT_LE |
| # define CONFIG_SYS_BOOTCOUNT_BE |
| #ifdef CONFIG_SYS_BOOTCOUNT_LE |
| static inline void raw_bootcount_store(volatile u32 *addr, u32 data) |
| static inline u32 raw_bootcount_load(volatile u32 *addr) |
| static inline void raw_bootcount_store(volatile u32 *addr, u32 data) |
| static inline u32 raw_bootcount_load(volatile u32 *addr) |