diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-02-27 22:14:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-06 14:10:44 +0100 |
commit | ef38ae656fe4956ef8ac8eaf7c5d964826e08e3d (patch) | |
tree | 6c84ef7f7e9e14bcb9b822122236cdfb0d5a81c1 /arch/arm/mach-stm32mp/include/mach/smc.h | |
parent | b254202f13ae7dc5520d8254a39cf9823c9894b6 (diff) | |
download | barebox-ef38ae656fe4956ef8ac8eaf7c5d964826e08e3d.tar.gz barebox-ef38ae656fe4956ef8ac8eaf7c5d964826e08e3d.tar.xz |
ARM: stm32mp: Move mach header files to include/mach/stm32mp
Currently arch specific headers can be included with
longer possible as there won't be a single mach anymore.
Move all stm32mp specific header files to include/mach/stm32mp/ to
prepare for multi-arch support.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-stm32mp/include/mach/smc.h')
-rw-r--r-- | arch/arm/mach-stm32mp/include/mach/smc.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/smc.h b/arch/arm/mach-stm32mp/include/mach/smc.h deleted file mode 100644 index c0b86b2203..0000000000 --- a/arch/arm/mach-stm32mp/include/mach/smc.h +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef __MACH_STM32_SMC_H__ -#define __MACH_STM32_SMC_H__ - -#include <linux/arm-smccc.h> - -/* Secure Service access from Non-secure */ -#define STM32_SMC_RCC 0x82001000 -#define STM32_SMC_PWR 0x82001001 -#define STM32_SMC_RTC 0x82001002 -#define STM32_SMC_BSEC 0x82001003 - -/* Register access service use for RCC/RTC/PWR */ -#define STM32_SMC_REG_WRITE 0x1 -#define STM32_SMC_REG_SET 0x2 -#define STM32_SMC_REG_CLEAR 0x3 - -static inline int stm32mp_smc(u32 svc, u8 op, u32 data1, u32 data2, u32 *val) -{ - struct arm_smccc_res res; - - arm_smccc_smc(svc, op, data1, data2, 0, 0, 0, 0, &res); - if (val) - *val = res.a1; - - return (int)res.a0; -} - -#endif |