From: Sebastien Bourdeauducq Date: Fri, 8 Aug 2014 13:57:42 +0000 (+0800) Subject: bios/sdram: set ODT and RESET_N through DFII X-Git-Tag: 24jan2021_ls180~2674 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b61dced90919f7b4e9fb4ce05b79a3a775e59d75;p=litex.git bios/sdram: set ODT and RESET_N through DFII --- diff --git a/software/bios/sdram.c b/software/bios/sdram.c index 61cef94d..58bfbc98 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;