diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap-secure.h')
-rw-r--r-- | arch/arm/mach-omap2/omap-secure.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap-secure.h b/arch/arm/mach-omap2/omap-secure.h index 0e729170c46b..8cc7d331437d 100644 --- a/arch/arm/mach-omap2/omap-secure.h +++ b/arch/arm/mach-omap2/omap-secure.h | |||
@@ -3,6 +3,8 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2011 Texas Instruments, Inc. | 4 | * Copyright (C) 2011 Texas Instruments, Inc. |
5 | * Santosh Shilimkar <santosh.shilimkar@ti.com> | 5 | * Santosh Shilimkar <santosh.shilimkar@ti.com> |
6 | * Copyright (C) 2012 Ivaylo Dimitrov <freemangordon@abv.bg> | ||
7 | * Copyright (C) 2013 Pali Rohár <pali.rohar@gmail.com> | ||
6 | * | 8 | * |
7 | * This program is free software; you can redistribute it and/or modify | 9 | * 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 | 10 | * it under the terms of the GNU General Public License version 2 as |
@@ -42,23 +44,38 @@ | |||
42 | #define OMAP4_MON_L2X0_AUXCTRL_INDEX 0x109 | 44 | #define OMAP4_MON_L2X0_AUXCTRL_INDEX 0x109 |
43 | #define OMAP4_MON_L2X0_PREFETCH_INDEX 0x113 | 45 | #define OMAP4_MON_L2X0_PREFETCH_INDEX 0x113 |
44 | 46 | ||
47 | #define OMAP5_DRA7_MON_SET_CNTFRQ_INDEX 0x109 | ||
48 | |||
45 | /* Secure PPA(Primary Protected Application) APIs */ | 49 | /* Secure PPA(Primary Protected Application) APIs */ |
46 | #define OMAP4_PPA_L2_POR_INDEX 0x23 | 50 | #define OMAP4_PPA_L2_POR_INDEX 0x23 |
47 | #define OMAP4_PPA_CPU_ACTRL_SMP_INDEX 0x25 | 51 | #define OMAP4_PPA_CPU_ACTRL_SMP_INDEX 0x25 |
48 | 52 | ||
53 | /* Secure RX-51 PPA (Primary Protected Application) APIs */ | ||
54 | #define RX51_PPA_HWRNG 29 | ||
55 | #define RX51_PPA_L2_INVAL 40 | ||
56 | #define RX51_PPA_WRITE_ACR 42 | ||
57 | |||
49 | #ifndef __ASSEMBLER__ | 58 | #ifndef __ASSEMBLER__ |
50 | 59 | ||
51 | extern u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, | 60 | extern u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, |
52 | u32 arg1, u32 arg2, u32 arg3, u32 arg4); | 61 | u32 arg1, u32 arg2, u32 arg3, u32 arg4); |
53 | extern u32 omap_smc2(u32 id, u32 falg, u32 pargs); | 62 | extern u32 omap_smc2(u32 id, u32 falg, u32 pargs); |
63 | extern u32 omap_smc3(u32 id, u32 process, u32 flag, u32 pargs); | ||
54 | extern phys_addr_t omap_secure_ram_mempool_base(void); | 64 | extern phys_addr_t omap_secure_ram_mempool_base(void); |
55 | extern int omap_secure_ram_reserve_memblock(void); | 65 | extern int omap_secure_ram_reserve_memblock(void); |
56 | 66 | ||
67 | extern u32 rx51_secure_dispatcher(u32 idx, u32 process, u32 flag, u32 nargs, | ||
68 | u32 arg1, u32 arg2, u32 arg3, u32 arg4); | ||
69 | extern u32 rx51_secure_update_aux_cr(u32 set_bits, u32 clear_bits); | ||
70 | extern u32 rx51_secure_rng_call(u32 ptr, u32 count, u32 flag); | ||
71 | |||
57 | #ifdef CONFIG_OMAP4_ERRATA_I688 | 72 | #ifdef CONFIG_OMAP4_ERRATA_I688 |
58 | extern int omap_barrier_reserve_memblock(void); | 73 | extern int omap_barrier_reserve_memblock(void); |
59 | #else | 74 | #else |
60 | static inline void omap_barrier_reserve_memblock(void) | 75 | static inline void omap_barrier_reserve_memblock(void) |
61 | { } | 76 | { } |
62 | #endif | 77 | #endif |
78 | |||
79 | void set_cntfreq(void); | ||
63 | #endif /* __ASSEMBLER__ */ | 80 | #endif /* __ASSEMBLER__ */ |
64 | #endif /* OMAP_ARCH_OMAP_SECURE_H */ | 81 | #endif /* OMAP_ARCH_OMAP_SECURE_H */ |