aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/mach-kfr2r09/mach/romimage.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-08-06 14:58:38 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-06 14:58:38 -0400
commit2d2bcd319a3d1412999cdfc72ad64eec992dc37e (patch)
treecf049d2155ff004af1fa74d40323c1f5b979502f /arch/sh/include/mach-kfr2r09/mach/romimage.h
parent7766e16beec3363516306754c9c51a85747d734d (diff)
sh: fix romImage mach dir usage
This patch moves all the romImage related header files into the mach/ directory. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/mach-kfr2r09/mach/romimage.h')
-rw-r--r--arch/sh/include/mach-kfr2r09/mach/romimage.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/arch/sh/include/mach-kfr2r09/mach/romimage.h b/arch/sh/include/mach-kfr2r09/mach/romimage.h
new file mode 100644
index 00000000000..f5aa8e16770
--- /dev/null
+++ b/arch/sh/include/mach-kfr2r09/mach/romimage.h
@@ -0,0 +1,75 @@
1/* kfr2r09 board specific boot code:
2 * converts the "partner-jet-script.txt" script into assembly
3 * the assembly code is the first code to be executed in the romImage
4 */
5
6/* The LIST command is used to include comments in the script */
7.macro LIST comment
8.endm
9
10/* The ED command is used to write a 32-bit word */
11.macro ED, addr, data
12 mov.l 1f ,r1
13 mov.l 2f ,r0
14 mov.l r0, @r1
15 bra 3f
16 nop
17 .align 2
181: .long \addr
192: .long \data
203:
21.endm
22
23/* The EW command is used to write a 16-bit word */
24.macro EW, addr, data
25 mov.l 1f ,r1
26 mov.l 2f ,r0
27 mov.w r0, @r1
28 bra 3f
29 nop
30 .align 2
311: .long \addr
322: .long \data
333:
34.endm
35
36/* The EB command is used to write an 8-bit word */
37.macro EB, addr, data
38 mov.l 1f ,r1
39 mov.l 2f ,r0
40 mov.b r0, @r1
41 bra 3f
42 nop
43 .align 2
441: .long \addr
452: .long \data
463:
47.endm
48
49/* The WAIT command is used to delay the execution */
50.macro WAIT, time
51 mov.l 2f ,r3
521:
53 nop
54 tst r3, r3
55 bf/s 1b
56 dt r3
57 bra 3f
58 nop
59 .align 2
602: .long \time * 100
613:
62.endm
63
64/* The DD command is used to read a 32-bit word */
65.macro DD, addr, addr2, nr
66 mov.l 1f ,r1
67 mov.l @r1, r0
68 bra 2f
69 nop
70 .align 2
711: .long \addr
722:
73.endm
74
75#include "partner-jet-setup.txt"