0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <linux/linkage.h>
0014 #include <linux/serial_s3c.h>
0015 #include <asm/assembler.h>
0016 #include "map.h"
0017
0018 #include "regs-gpio.h"
0019 #include "regs-clock.h"
0020
0021
0022
0023
0024
0025 //#define S3C24XX_DEBUG_RESUME
0026
0027 .text
0028
0029
0030
0031
0032
0033
0034 .word 0x2bedf00d
0035
0036
0037
0038
0039
0040
0041 ENTRY(s3c_cpu_resume)
0042 mov r0, #PSR_I_BIT | PSR_F_BIT | SVC_MODE
0043 msr cpsr_c, r0
0044
0045 @@ load UART to allow us to print the two characters for
0046 @@ resume debug
0047
0048 mov r2, #S3C24XX_PA_UART & 0xff000000
0049 orr r2, r2, #S3C24XX_PA_UART & 0xff000
0050
0051 #if 0
0052
0053 mov r14, #S3C24XX_PA_GPIO
0054 ldr r12, [ r14, #0x54 ]
0055 bic r12, r12, #3<<4
0056 orr r12, r12, #1<<7
0057 str r12, [ r14, #0x54 ]
0058 #endif
0059
0060 #ifdef S3C24XX_DEBUG_RESUME
0061 mov r3, #'L'
0062 strb r3, [ r2, #S3C2410_UTXH ]
0063 1001:
0064 ldrb r14, [ r3, #S3C2410_UTRSTAT ]
0065 tst r14, #S3C2410_UTRSTAT_TXE
0066 beq 1001b
0067 #endif
0068
0069 b cpu_resume