blob: f61c7771ca47e580cfebc4c654f49433290cfe02 [file] [log] [blame]
Santosh Shilimkard660f9a2010-03-11 07:33:46 +00001/*
2 * OMAP44xx secure APIs file.
3 *
4 * Copyright (C) 2010 Texas Instruments, Inc.
5 * Written by Santosh Shilimkar <santosh.shilimkar@ti.com>
6 *
7 *
8 * This program is free software,you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#include <linux/linkage.h>
14
15/*
16 * This is common routine to manage secure monitor API
17 * used to modify the PL310 secure registers.
18 * 'r0' contains the value to be modified and 'r12' contains
19 * the monitor API number. It uses few CPU registers
20 * internally and hence they need be backed up including
21 * link register "lr".
22 * Function signature : void omap_smc1(u32 fn, u32 arg)
23 */
24
25ENTRY(omap_smc1)
26 stmfd sp!, {r2-r12, lr}
27 mov r12, r0
28 mov r0, r1
29 dsb
Richard Woodruffdf571c42010-04-07 07:47:21 +000030 smc #0
Santosh Shilimkard660f9a2010-03-11 07:33:46 +000031 ldmfd sp!, {r2-r12, pc}
32END(omap_smc1)