1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* 3 * Copyright (c) 2023, STMicroelectronics 4 */ 5 6 #ifndef __STM32_UTIL_H__ 7 #define __STM32_UTIL_H__ 8 9 #include <kernel/spinlock.h> 10 #include <stdint.h> 11 #include <types_ext.h> 12 13 static inline void stm32mp_register_secure_periph_iomem(vaddr_t base __unused) 14 { 15 } 16 17 static inline void stm32mp_register_non_secure_periph_iomem(vaddr_t base 18 __unused) { } 19 20 static inline void stm32mp_register_gpioz_pin_count(size_t count __unused) { } 21 22 #define may_spin_lock(lock) cpu_spin_lock_xsave(lock) 23 #define may_spin_unlock(lock, exceptions) cpu_spin_unlock_xrestore(lock, \ 24 exceptions) 25 #endif /*__STM32_UTIL_H__*/ 26