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