From 845ae95905a1680e74aea7c2565bb51ed19cbbdb Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Sun, 30 Aug 2009 21:55:14 +0800 Subject: [PATCH] fix the SDRAM_BANK4. should be 0 or 1 --- usbboot/xburst_stage1/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usbboot/xburst_stage1/main.c b/usbboot/xburst_stage1/main.c index 0e1b735..f9b094c 100644 --- a/usbboot/xburst_stage1/main.c +++ b/usbboot/xburst_stage1/main.c @@ -47,7 +47,7 @@ void test_load_args(void) UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000; CONFIG_BAUDRATE = 57600; SDRAM_BW16 = 1; - SDRAM_BANK4 = 4; + SDRAM_BANK4 = 1; SDRAM_ROW = 13; SDRAM_COL = 9; CONFIG_MOBILE_SDRAM = 0; @@ -73,7 +73,7 @@ void load_args(void) UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000; CONFIG_BAUDRATE = fw_args->boudrate; SDRAM_BW16 = fw_args->bus_width; - SDRAM_BANK4 = fw_args->bank_num * 4; + SDRAM_BANK4 = fw_args->bank_num; SDRAM_ROW = fw_args->row_addr; SDRAM_COL = fw_args->col_addr; CONFIG_MOBILE_SDRAM = fw_args->is_mobile;