summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-10-10 18:03:33 +0000
committerwdenk <wdenk>2004-10-10 18:03:33 +0000
commitb65085130aed33584d95502c20317ad4379c1ca6 (patch)
treeeed2284bd6c1d9336df1ba926a1c6f2be8b876ff /board
parent2cbe571a5676a41aa32ff98e9b1a2934e3922574 (diff)
downloadu-boot-imx-b65085130aed33584d95502c20317ad4379c1ca6.zip
u-boot-imx-b65085130aed33584d95502c20317ad4379c1ca6.tar.gz
u-boot-imx-b65085130aed33584d95502c20317ad4379c1ca6.tar.bz2
Code Cleanup
Patch by Gary Jennejohn, 04 Oct 2004: - fix I2C on at91rm9200 - add support for Ricoh RS5C372A RTC
Diffstat (limited to 'board')
-rw-r--r--board/cmc_pu2/memsetup.S40
1 files changed, 20 insertions, 20 deletions
diff --git a/board/cmc_pu2/memsetup.S b/board/cmc_pu2/memsetup.S
index 168cd6b..2d0e1d7 100644
--- a/board/cmc_pu2/memsetup.S
+++ b/board/cmc_pu2/memsetup.S
@@ -2,7 +2,7 @@
* Memory Setup stuff - taken from blob memsetup.S
*
* Copyright (C) 1999 2000 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) and
- * Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl)
+ * Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl)
*
* Modified for the at91rm9200dk board by
* (C) Copyright 2004
@@ -18,7 +18,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
@@ -92,36 +92,36 @@ _TEXT_BASE:
.globl memsetup
memsetup:
/* memory control configuration */
- /* this isn't very elegant, but what the heck */
- ldr r0, =SMRDATA
+ /* this isn't very elegant, but what the heck */
+ ldr r0, =SMRDATA
ldr r1, _TEXT_BASE
sub r0, r0, r1
- add r2, r0, #80
+ add r2, r0, #80
0:
/* the address */
- ldr r1, [r0], #4
+ ldr r1, [r0], #4
/* the value */
- ldr r3, [r0], #4
- str r3, [r1]
- cmp r2, r0
- bne 0b
+ ldr r3, [r0], #4
+ str r3, [r1]
+ cmp r2, r0
+ bne 0b
/* delay - this is all done by guess */
- ldr r0, =0x00001000
+ ldr r0, =0x00001000
1:
- subs r0, r0, #1
- bhi 1b
- ldr r0, =SMRDATA1
+ subs r0, r0, #1
+ bhi 1b
+ ldr r0, =SMRDATA1
ldr r1, _TEXT_BASE
sub r0, r0, r1
- add r2, r0, #176
+ add r2, r0, #176
2:
/* the address */
- ldr r1, [r0], #4
+ ldr r1, [r0], #4
/* the value */
- ldr r3, [r0], #4
- str r3, [r1]
- cmp r2, r0
- bne 2b
+ ldr r3, [r0], #4
+ str r3, [r1]
+ cmp r2, r0
+ bne 2b
/* everything is fine now */
mov pc, lr