From b61dced90919f7b4e9fb4ce05b79a3a775e59d75 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 8 Aug 2014 21:57:42 +0800 Subject: [PATCH] bios/sdram: set ODT and RESET_N through DFII --- software/bios/sdram.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/software/bios/sdram.c b/software/bios/sdram.c index 61cef94da..58bfbc98b 100644 --- a/software/bios/sdram.c +++ b/software/bios/sdram.c @@ -26,13 +26,13 @@ static void cdelay(int i) void sdrsw(void) { - dfii_control_write(DFII_CONTROL_CKE); + dfii_control_write(DFII_CONTROL_CKE|DFII_CONTROL_ODT|DFII_CONTROL_RESET_N); printf("SDRAM now under software control\n"); } void sdrhw(void) { - dfii_control_write(DFII_CONTROL_SEL|DFII_CONTROL_CKE); + dfii_control_write(DFII_CONTROL_SEL); printf("SDRAM now under hardware control\n"); } @@ -163,7 +163,7 @@ int sdrinit(void) printf("Initializing SDRAM...\n"); init_sequence(); - dfii_control_write(DFII_CONTROL_SEL|DFII_CONTROL_CKE); + dfii_control_write(DFII_CONTROL_SEL); if(!memtest()) return 0;