xref: /rk3399_rockchip-uboot/arch/arm/include/asm/opcodes-sec.h (revision c2da86f39ed6cbccccc2736bdc421fd606734232)
1*c2da86f3SMasahiro Yamada /*
2*c2da86f3SMasahiro Yamada  * This program is free software; you can redistribute it and/or modify
3*c2da86f3SMasahiro Yamada  * it under the terms of the GNU General Public License version 2 as
4*c2da86f3SMasahiro Yamada  * published by the Free Software Foundation.
5*c2da86f3SMasahiro Yamada  *
6*c2da86f3SMasahiro Yamada  * This program is distributed in the hope that it will be useful,
7*c2da86f3SMasahiro Yamada  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8*c2da86f3SMasahiro Yamada  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9*c2da86f3SMasahiro Yamada  * GNU General Public License for more details.
10*c2da86f3SMasahiro Yamada  *
11*c2da86f3SMasahiro Yamada  * Copyright (C) 2012 ARM Limited
12*c2da86f3SMasahiro Yamada  */
13*c2da86f3SMasahiro Yamada 
14*c2da86f3SMasahiro Yamada #ifndef __ASM_ARM_OPCODES_SEC_H
15*c2da86f3SMasahiro Yamada #define __ASM_ARM_OPCODES_SEC_H
16*c2da86f3SMasahiro Yamada 
17*c2da86f3SMasahiro Yamada #include <asm/opcodes.h>
18*c2da86f3SMasahiro Yamada 
19*c2da86f3SMasahiro Yamada #define __SMC(imm4) __inst_arm_thumb32(					\
20*c2da86f3SMasahiro Yamada 	0xE1600070 | (((imm4) & 0xF) << 0),				\
21*c2da86f3SMasahiro Yamada 	0xF7F08000 | (((imm4) & 0xF) << 16)				\
22*c2da86f3SMasahiro Yamada )
23*c2da86f3SMasahiro Yamada 
24*c2da86f3SMasahiro Yamada #endif /* __ASM_ARM_OPCODES_SEC_H */
25