aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/pm-h1940.S
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-12-05 19:50:24 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-12-07 11:17:49 -0500
commit9073341c2ba5d5e77b3d05d84cf9e3a16e8a7902 (patch)
tree96e35ea42213836fa949df8f5d4b20f6834f855d /arch/arm/mach-s3c2410/pm-h1940.S
parentf9a8ca1cabf09316d79cab7f04e1390261ff9035 (diff)
[ARM] 3986/1: H1940: suspend to RAM support
Add support to suspend and resume, using the H1940's bootloader Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/pm-h1940.S')
-rw-r--r--arch/arm/mach-s3c2410/pm-h1940.S33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/pm-h1940.S b/arch/arm/mach-s3c2410/pm-h1940.S
new file mode 100644
index 000000000000..7d66de7ff7db
--- /dev/null
+++ b/arch/arm/mach-s3c2410/pm-h1940.S
@@ -0,0 +1,33 @@
1/* linux/arch/arm/mach-s3c2410/pm-h1940.S
2 *
3 * Copyright (c) 2006 Ben Dooks <ben-linux@fluff.org>
4 *
5 * H1940 Suspend to RAM
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19*/
20
21#include <linux/linkage.h>
22#include <asm/assembler.h>
23#include <asm/hardware.h>
24#include <asm/arch/map.h>
25
26#include <asm/arch/regs-gpio.h>
27
28 .text
29 .global h1940_pm_return
30
31h1940_pm_return:
32 mov r0, #S3C2410_PA_GPIO
33 ldr pc, [ r0, #S3C2410_GSTATUS3 - S3C24XX_VA_GPIO ]