1
2
3
4
5
6
7
8 #include <linux/sys.h>
9 #include <linux/errno.h>
10 #include <linux/linkage.h>
11 #include <asm/asm-offsets.h>
12 #include <asm/suspend.h>
13 #include <asm/romimage-macros.h>
14
15
16
17
18 .balign 4
19 ENTRY(kfr2r09_sdram_enter_start)
20
21
22
23 ED 0xFD000010, 0x00000000
24 ED 0xFD000040, 0x00000000
25 ED 0xFD000014, 0x00000002
26 ED 0xFD000014, 0x00000004
27 ED 0xFD000040, 0x00000001
28
29 rts
30 nop
31
32 ENTRY(kfr2r09_sdram_enter_end)
33
34 .balign 4
35 ENTRY(kfr2r09_sdram_leave_start)
36
37
38
39 mov.l @(SH_SLEEP_MODE, r5), r0
40 tst #SUSP_SH_RSTANDBY, r0
41 bf resume_rstandby
42
43 ED 0xFD000040, 0x00000000
44 WAIT 1
45 ED 0xFD000014, 0x00000002
46 ED 0xFD000014, 0x00000004
47 ED 0xFD000010, 0x00000001
48 ED 0xFD000040, 0x00010000
49
50 rts
51 nop
52
53 resume_rstandby:
54
55
56
57 ED 0xFD000108, 0x40000301
58 ED 0xFD000020, 0x011B0002
59 ED 0xFD000030, 0x03060E02
60 ED 0xFD000034, 0x01020102
61 ED 0xFD000038, 0x01090406
62 ED 0xFD000008, 0x00000004
63 ED 0xFD000040, 0x00000001
64 ED 0xFD000040, 0x00000000
65 ED 0xFD000018, 0x00000001
66 WAIT 1
67 ED 0xFD000010, 0x00000001
68 ED 0xFD000044, 0x000004AF
69 ED 0xFD000048, 0x20CF0037
70 ED 0xFD000014, 0x00000004
71 ED 0xFD000108, 0x40000300
72 ED 0xFD000040, 0x00010000
73
74 rts
75 nop
76
77 ENTRY(kfr2r09_sdram_leave_end)