From: Graeme Russ Date: Sun, 7 Dec 2008 10:29:10 +1100 Subject: [U-Boot] [PATCH 14/15] Added MMCR initialisation to real mode eNET board initialisation In-Reply-To: <1228606151-10839-14-git-send-email-graeme.russ@gmail.com> References: <1228606151-10839-1-git-send-email-graeme.russ@gmail.com> <1228606151-10839-2-git-send-email-graeme.russ@gmail.com> <1228606151-10839-3-git-send-email-graeme.russ@gmail.com> <1228606151-10839-4-git-send-email-graeme.russ@gmail.com> <1228606151-10839-5-git-send-email-graeme.russ@gmail.com> <1228606151-10839-6-git-send-email-graeme.russ@gmail.com> <1228606151-10839-7-git-send-email-graeme.russ@gmail.com> <1228606151-10839-8-git-send-email-graeme.russ@gmail.com> <1228606151-10839-9-git-send-email-graeme.russ@gmail.com> <1228606151-10839-10-git-send-email-graeme.russ@gmail.com> <1228606151-10839-11-git-send-email-graeme.russ@gmail.com> <1228606151-10839-12-git-send-email-graeme.russ@gmail.com> <1228606151-10839-13-git-send-email-graeme.russ@gmail.com> <1228606151-10839-14-git-send-email-graeme.russ@gmail.com> Message-ID: <1228606151-10839-15-git-send-email-graeme.russ@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Allows for earlier access to status LEDs Signed-off-by: Graeme Russ --- 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