bios/sdram: set ODT and RESET_N through DFII
authorSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 8 Aug 2014 13:57:42 +0000 (21:57 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 8 Aug 2014 13:57:42 +0000 (21:57 +0800)
software/bios/sdram.c

index 61cef94da638585199ac07260aa9a764e09dc063..58bfbc98bdc052c4c2cd55aef12102dd56c2ceb3 100644 (file)
@@ -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;