summaryrefslogtreecommitdiff
path: root/board/renesas/sh7785lcr
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-12-20 19:29:49 +0100
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2009-01-16 10:22:27 +0900
commitf7e78f3b74aae9caca2997bad865a72338326c0a (patch)
treeb91ea5c01b9232ffbe7573b5eeac3343b3df8594 /board/renesas/sh7785lcr
parente4430779623af500de1cee7892c379f07ef59813 (diff)
downloadu-boot-imx-f7e78f3b74aae9caca2997bad865a72338326c0a.zip
u-boot-imx-f7e78f3b74aae9caca2997bad865a72338326c0a.tar.gz
u-boot-imx-f7e78f3b74aae9caca2997bad865a72338326c0a.tar.bz2
sh: use write{8,16,32} in all lowlevel_init
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'board/renesas/sh7785lcr')
-rw-r--r--board/renesas/sh7785lcr/lowlevel_init.S28
1 files changed, 1 insertions, 27 deletions
diff --git a/board/renesas/sh7785lcr/lowlevel_init.S b/board/renesas/sh7785lcr/lowlevel_init.S
index 4cb1d9d..f5ebeb9 100644
--- a/board/renesas/sh7785lcr/lowlevel_init.S
+++ b/board/renesas/sh7785lcr/lowlevel_init.S
@@ -19,33 +19,7 @@
#include <config.h>
#include <version.h>
#include <asm/processor.h>
-
-.macro write32, addr, data
- mov.l \addr ,r1
- mov.l \data ,r0
- mov.l r0, @r1
-.endm
-
-.macro write16, addr, data
- mov.l \addr ,r1
- mov.l \data ,r0
- mov.w r0, @r1
-.endm
-
-.macro write8, addr, data
- mov.l \addr ,r1
- mov.l \data ,r0
- mov.b r0, @r1
-.endm
-
-.macro wait_timer, time
- mov.l \time ,r3
-1:
- nop
- tst r3, r3
- bf/s 1b
- dt r3
-.endm
+#include <asm/macro.h>
#include <asm/processor.h>