From 96cd66426a6a615373f7f33fb2a8b7ee3925b1cf Mon Sep 17 00:00:00 2001 From: Graeme Russ Date: Sat, 12 Feb 2011 15:11:54 +1100 Subject: sc520: Move RAM sizing code from asm to C --- board/eNET/eNET.c | 6 ------ board/eNET/eNET_start16.S | 5 ----- 2 files changed, 11 deletions(-) (limited to 'board/eNET') diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c index e64a395..dd0ce54 100644 --- a/board/eNET/eNET.c +++ b/board/eNET/eNET.c @@ -160,12 +160,6 @@ int board_early_init_r(void) return 0; } -int dram_init(void) -{ - init_sc520_dram(); - return 0; -} - void show_boot_progress(int val) { uchar led_mask; diff --git a/board/eNET/eNET_start16.S b/board/eNET/eNET_start16.S index 4835936..77e5519 100644 --- a/board/eNET/eNET_start16.S +++ b/board/eNET/eNET_start16.S @@ -57,11 +57,6 @@ board_init16: movl $CONFIG_SYS_SC520_LLIO_PAR, %eax movl %eax, (%di) - /* Disable SDRAM write buffer */ - movw $(SC520_DBCTL - SC520_MMCR_BASE), %di - xorw %ax, %ax - movb %al, (%di) - /* Disabe MMCR alias */ movw $0xfffc, %dx movl $0x000000cb, %eax -- cgit v1.1