summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/mach-kfr2r09
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2009-09-10 01:39:52 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-09-11 13:19:16 +0900
commit378a569eaa2bff8f22bb312a76cf0a97d5d329ae (patch)
treefc35c29aa2222621709eefc5f458eb85d4b52f57 /arch/sh/include/mach-kfr2r09
parent125ecce6960e3365433ec5c734365a51e88bf3d9 (diff)
downloadblackbird-op-linux-378a569eaa2bff8f22bb312a76cf0a97d5d329ae.tar.gz
blackbird-op-linux-378a569eaa2bff8f22bb312a76cf0a97d5d329ae.zip
sh: add romimage-macros.h
romimage macros which are used in kfr2r09 is very useful for other board. This patch divides kfr2r09's romimage.h into romimage-macros and partner-jet-setup. Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/mach-kfr2r09')
-rw-r--r--arch/sh/include/mach-kfr2r09/mach/romimage.h70
1 files changed, 1 insertions, 69 deletions
diff --git a/arch/sh/include/mach-kfr2r09/mach/romimage.h b/arch/sh/include/mach-kfr2r09/mach/romimage.h
index 39ee79443569..a110823f2bde 100644
--- a/arch/sh/include/mach-kfr2r09/mach/romimage.h
+++ b/arch/sh/include/mach-kfr2r09/mach/romimage.h
@@ -3,75 +3,7 @@
* the assembly code is the first code to be executed in the romImage
*/
-/* The LIST command is used to include comments in the script */
-.macro LIST comment
-.endm
-
-/* The ED command is used to write a 32-bit word */
-.macro ED, addr, data
- mov.l 1f ,r1
- mov.l 2f ,r0
- mov.l r0, @r1
- bra 3f
- nop
- .align 2
-1: .long \addr
-2: .long \data
-3:
-.endm
-
-/* The EW command is used to write a 16-bit word */
-.macro EW, addr, data
- mov.l 1f ,r1
- mov.l 2f ,r0
- mov.w r0, @r1
- bra 3f
- nop
- .align 2
-1: .long \addr
-2: .long \data
-3:
-.endm
-
-/* The EB command is used to write an 8-bit word */
-.macro EB, addr, data
- mov.l 1f ,r1
- mov.l 2f ,r0
- mov.b r0, @r1
- bra 3f
- nop
- .align 2
-1: .long \addr
-2: .long \data
-3:
-.endm
-
-/* The WAIT command is used to delay the execution */
-.macro WAIT, time
- mov.l 2f ,r3
-1:
- nop
- tst r3, r3
- bf/s 1b
- dt r3
- bra 3f
- nop
- .align 2
-2: .long \time * 100
-3:
-.endm
-
-/* The DD command is used to read a 32-bit word */
-.macro DD, addr, addr2, nr
- mov.l 1f ,r1
- mov.l @r1, r0
- bra 2f
- nop
- .align 2
-1: .long \addr
-2:
-.endm
-
+#include <asm/romimage-macros.h>
#include "partner-jet-setup.txt"
/* execute icbi after enabling cache */
OpenPOWER on IntegriCloud