1457c3a9dd8a13bc537d4df9bfecdc2c687638bf
1 /*
2 * Low level suspend code for AM33XX SoCs
3 *
4 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
9 *
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
16 #include <linux/linkage.h>
17 #include <linux/init.h>
18 #include <asm/memory.h>
19 #include <asm/assembler.h>
20 #include <plat/sram.h>
21 #include <mach/io.h>
23 .align 3
24 ENTRY(am33xx_do_wfi)
25 wfi
26 nop
27 nop
28 nop
29 nop
30 nop
31 nop
32 nop
33 nop
34 nop
35 nop
36 nop
37 nop
38 nop
40 /* We are back. Branch to the common CPU resume routine */
41 ENTRY(am33xx_resume_vector)
42 ldr pc, resume_addr
44 resume_addr:
45 .word cpu_resume - PAGE_OFFSET + 0x80000000
47 ENTRY(am33xx_do_wfi_sz)
48 .word . - am33xx_do_wfi