.. | .. |
---|
2 | 2 | /* |
---|
3 | 3 | * Copyright (c) 2012 Samsung Electronics. |
---|
4 | 4 | * |
---|
5 | | - * EXYNOS - SMC Call |
---|
| 5 | + * Exynos - SMC Call |
---|
6 | 6 | */ |
---|
7 | 7 | |
---|
8 | 8 | #ifndef __ASM_ARCH_EXYNOS_SMC_H |
---|
.. | .. |
---|
25 | 25 | #define SMC_CMD_L2X0INVALL (-24) |
---|
26 | 26 | #define SMC_CMD_L2X0DEBUG (-25) |
---|
27 | 27 | |
---|
| 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 | + |
---|
28 | 35 | #ifndef __ASSEMBLY__ |
---|
29 | 36 | |
---|
30 | 37 | extern void exynos_smc(u32 cmd, u32 arg1, u32 arg2, u32 arg3); |
---|