diff options
Diffstat (limited to 'arch/arm/mach-omap2/include/mach')
-rw-r--r-- | arch/arm/mach-omap2/include/mach/omap-secure.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/include/mach/omap-secure.h b/arch/arm/mach-omap2/include/mach/omap-secure.h new file mode 100644 index 000000000000..26e7bcc49adc --- /dev/null +++ b/arch/arm/mach-omap2/include/mach/omap-secure.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * omap-secure.h: OMAP Secure infrastructure header. | ||
3 | * | ||
4 | * Copyright (C) 2011 Texas Instruments, Inc. | ||
5 | * Santosh Shilimkar <santosh.shilimkar@ti.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef OMAP_ARCH_OMAP_SECURE_H | ||
12 | #define OMAP_ARCH_OMAP_SECURE_H | ||
13 | |||
14 | /* Monitor error code */ | ||
15 | #define API_HAL_RET_VALUE_NS2S_CONVERSION_ERROR 0xFFFFFFFE | ||
16 | #define API_HAL_RET_VALUE_SERVICE_UNKNWON 0xFFFFFFFF | ||
17 | |||
18 | /* HAL API error codes */ | ||
19 | #define API_HAL_RET_VALUE_OK 0x00 | ||
20 | #define API_HAL_RET_VALUE_FAIL 0x01 | ||
21 | |||
22 | /* Secure HAL API flags */ | ||
23 | #define FLAG_START_CRITICAL 0x4 | ||
24 | #define FLAG_IRQFIQ_MASK 0x3 | ||
25 | #define FLAG_IRQ_ENABLE 0x2 | ||
26 | #define FLAG_FIQ_ENABLE 0x1 | ||
27 | #define NO_FLAG 0x0 | ||
28 | |||
29 | |||
30 | /* Secure low power HAL API index */ | ||
31 | #define OMAP4_HAL_SAVESECURERAM_INDEX 0x1a | ||
32 | #define OMAP4_HAL_SAVEHW_INDEX 0x1b | ||
33 | #define OMAP4_HAL_SAVEALL_INDEX 0x1c | ||
34 | #define OMAP4_HAL_SAVEGIC_INDEX 0x1d | ||
35 | |||
36 | extern u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, | ||
37 | u32 arg1, u32 arg2, u32 arg3, u32 arg4); | ||
38 | extern u32 omap_smc2(u32 id, u32 falg, u32 pargs); | ||
39 | |||
40 | #endif /* OMAP_ARCH_OMAP_SECURE_H */ | ||