1
2
3
4
5
6
7
8
9
10
11
12
13 #include <linux/linkage.h>
14 #include <linux/serial_s3c.h>
15 #include <asm/assembler.h>
16 #include <mach/hardware.h>
17 #include <mach/map.h>
18
19 #include <mach/regs-gpio.h>
20 #include <mach/regs-clock.h>
21
22
23
24
25
26
27
28 .text
29
30
31
32
33
34
35 .word 0x2bedf00d
36
37
38
39
40
41
42 ENTRY(s3c_cpu_resume)
43 mov r0, #PSR_I_BIT | PSR_F_BIT | SVC_MODE
44 msr cpsr_c, r0
45
46 @@ load UART to allow us to print the two characters for
47 @@ resume debug
48
49 mov r2, #S3C24XX_PA_UART & 0xff000000
50 orr r2, r2, #S3C24XX_PA_UART & 0xff000
51
52 #if 0
53
54 mov r14, #S3C24XX_PA_GPIO
55 ldr r12, [ r14, #0x54 ]
56 bic r12, r12, #3<<4
57 orr r12, r12, #1<<7
58 str r12, [ r14, #0x54 ]
59 #endif
60
61 #ifdef S3C24XX_DEBUG_RESUME
62 mov r3, #'L'
63 strb r3, [ r2, #S3C2410_UTXH ]
64 1001:
65 ldrb r14, [ r3, #S3C2410_UTRSTAT ]
66 tst r14, #S3C2410_UTRSTAT_TXE
67 beq 1001b
68 #endif
69
70 b cpu_resume