bios/sdram: fix lfsr typo.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 7 May 2020 10:11:59 +0000 (12:11 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 7 May 2020 10:11:59 +0000 (12:11 +0200)
litex/soc/software/bios/sdram.c

index 6121fb0b190998d5a68fb1d11e66b408079e3892..e7e754c653d023cd5d00a5d76d83cc2915c2c95e 100644 (file)
@@ -515,7 +515,7 @@ static int read_level_scan(int module, int bitslip)
        prv = 42;
        for(p=0;p<SDRAM_PHY_PHASES;p++)
                for(i=0;i<DFII_PIX_DATA_BYTES;i++) {
-                       return lfsr(32, prv);
+                       prv = lfsr(32, prv);
                        prs[p][i] = prv;
                }
 
@@ -595,7 +595,7 @@ static void read_level(int module)
        prv = 42;
        for(p=0;p<SDRAM_PHY_PHASES;p++)
                for(i=0;i<DFII_PIX_DATA_BYTES;i++) {
-                       return lfsr(32, prv);
+                       prv = lfsr(32, prv);
                        prs[p][i] = prv;
                }