summaryrefslogtreecommitdiff
path: root/board/eNET
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:36 +1100
committerGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:36 +1100
commitc2cbbaf0b4035f713f524b85b8f54fb7f7f3720d (patch)
tree2552bcbcc8cbcfe301b72281d8b030597838b312 /board/eNET
parent0ea76e92e989ce292f1eeadc0754b3ab9a50df16 (diff)
downloadu-boot-imx-c2cbbaf0b4035f713f524b85b8f54fb7f7f3720d.zip
u-boot-imx-c2cbbaf0b4035f713f524b85b8f54fb7f7f3720d.tar.gz
u-boot-imx-c2cbbaf0b4035f713f524b85b8f54fb7f7f3720d.tar.bz2
sc520: Define MMCR address in include file
Diffstat (limited to 'board/eNET')
-rw-r--r--board/eNET/eNET_start16.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/eNET/eNET_start16.S b/board/eNET/eNET_start16.S
index 06cfd55..183309c 100644
--- a/board/eNET/eNET_start16.S
+++ b/board/eNET/eNET_start16.S
@@ -30,6 +30,7 @@
/* #include <asm/ic/sc520_defs.h> */
#include "hardware.h"
+#include <asm/ic/sc520.h>
.text
.section .start16, "ax"
@@ -46,17 +47,17 @@ board_init16:
movw %ax, %ds
/* Map PAR for Boot Flash (BOOTCS, 512kB @ 0x380000000) */
- movl $0x00c0, %edi /* SC520_PAR14 */
+ movl $(SC520_PAR14 - SC520_MMCR_BASE), %edi
movl $0x8bfff800, %eax /* TODO: Check this */
movl %eax, (%di)
/* Map PAR for LED, Hex Switches (GPCS6, 20 Bytes @ 0x1000) */
- movl $0x00c4, %edi /* SC520_PAR15 */
+ movl $(SC520_PAR15 - SC520_MMCR_BASE), %edi
movl $0x38201000, %eax
movl %eax, (%di)
/* Disable SDRAM write buffer */
- movw $0x0040, %di /* SC520_DBCTL */
+ movw $(SC520_DBCTL - SC520_MMCR_BASE), %di
xorw %ax, %ax
movb %al, (%di)