[U-Boot] [PATCH 14/15] Added MMCR initialisation to real mode eNET board initialisation
Graeme Russ
graeme.russ at gmail.com
Sun Dec 7 00:29:10 CET 2008
Allows for earlier access to status LEDs
Signed-off-by: Graeme Russ <graeme.russ at gmail.com>
---
board/eNET/eNET_start16.S | 70 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
diff --git a/board/eNET/eNET_start16.S b/board/eNET/eNET_start16.S
index 48e4d83..e16ca83 100644
--- a/board/eNET/eNET_start16.S
+++ b/board/eNET/eNET_start16.S
@@ -60,6 +60,76 @@ board_init16:
xorw %ax, %ax
movb %al, (%di)
+ /* GP Chip Select Recovery Time */
+ movl $0x0c08, %edi
+ movb $0x01, %al
+ movb %al, (%di)
+
+ /* GP Chip Select Pulse Width */
+ movl $0x0c09, %edi
+ movb $0x07, %al
+ movb %al, (%di)
+
+ /* GP Chip Select Offset */
+ movl $0x0c0a, %edi
+ movb $0x00, %al
+ movb %al, (%di)
+
+ /* GP Read pulse width */
+ movl $0x0c0b, %edi
+ movb $0x05, %al
+ movb %al, (%di)
+
+ /* GP Read offset */
+ movl $0x0c0c, %edi
+ movb $0x01, %al
+ movb %al, (%di)
+
+ /* GP Write pulse width */
+ movl $0x0c0d, %edi
+ movb $0x05, %al
+ movb %al, (%di)
+
+ /* GP Write offset */
+ movl $0x0c0e, %edi
+ movb $0x01, %al
+ movb %al, (%di)
+
+ /* PIO15_PIO0 Data */
+ movl $0x0c30, %edi
+ movw $0x0630, %ax
+ movw %ax, (%di)
+
+ /* PIO31_PIO16 Data */
+ movl $0x0c32, %edi
+ movw $0x2000, %ax
+ movw %ax, (%di)
+
+ /* GPIO directionreg */
+ movl $0x0c2c, %edi
+ movw $0x2000, %ax
+ movw %ax, (%di)
+
+ /* GPIO directionreg */
+ movl $0x0c2a, %edi
+ movw $0x0dfe, %ax
+ movw %ax, (%di)
+
+ /* GPIO pin function 31-16 reg */
+ movl $0x0c22, %edi
+ movw $0x87b5, %ax
+ movw %ax, (%di)
+
+ /* GPIO pin function 15-0 reg */
+ movl $0x0c20, %edi
+ movw $0x200a, %ax
+ movw %ax, (%di)
+
+ /* Chip Select Pin Function Select */
+ movl $0x0c24, %edi
+ movb $0xf8, %al
+ movb %al, (%di)
+
/* Disabe MMCR alias */
movw $0xfffc, %dx
movl $0x000000cb, %eax
--
1.5.4.3
More information about the U-Boot
mailing list