diff options
Diffstat (limited to 'arch/arm/mach-highbank/smc.S')
-rw-r--r-- | arch/arm/mach-highbank/smc.S | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-highbank/smc.S b/arch/arm/mach-highbank/smc.S new file mode 100644 index 000000000000..407d17baaaa9 --- /dev/null +++ b/arch/arm/mach-highbank/smc.S | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * Copied from omap44xx-smc.S Copyright (C) 2010 Texas Instruments, Inc. | ||
3 | * Copyright 2012 Calxeda, Inc. | ||
4 | * | ||
5 | * This program is free software,you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #include <linux/linkage.h> | ||
11 | |||
12 | /* | ||
13 | * This is common routine to manage secure monitor API | ||
14 | * used to modify the PL310 secure registers. | ||
15 | * 'r0' contains the value to be modified and 'r12' contains | ||
16 | * the monitor API number. | ||
17 | * Function signature : void highbank_smc1(u32 fn, u32 arg) | ||
18 | */ | ||
19 | |||
20 | ENTRY(highbank_smc1) | ||
21 | stmfd sp!, {r4-r11, lr} | ||
22 | mov r12, r0 | ||
23 | mov r0, r1 | ||
24 | dsb | ||
25 | smc #0 | ||
26 | ldmfd sp!, {r4-r11, pc} | ||
27 | ENDPROC(highbank_smc1) | ||