hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-exynos/smc.h
....@@ -2,7 +2,7 @@
22 /*
33 * Copyright (c) 2012 Samsung Electronics.
44 *
5
- * EXYNOS - SMC Call
5
+ * Exynos - SMC Call
66 */
77
88 #ifndef __ASM_ARCH_EXYNOS_SMC_H
....@@ -25,6 +25,13 @@
2525 #define SMC_CMD_L2X0INVALL (-24)
2626 #define SMC_CMD_L2X0DEBUG (-25)
2727
28
+/* For Accessing CP15/SFR (General) */
29
+#define SMC_CMD_REG (-101)
30
+
31
+/* defines for SMC_CMD_REG */
32
+#define SMC_REG_CLASS_SFR_W (0x1 << 30)
33
+#define SMC_REG_ID_SFR_W(addr) (SMC_REG_CLASS_SFR_W | ((addr) >> 2))
34
+
2835 #ifndef __ASSEMBLY__
2936
3037 extern void exynos_smc(u32 cmd, u32 arg1, u32 arg2, u32 arg3);