bios/sdram: fix merge typo in lfsr (thanks Benjamin Herrenschmidt).
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 7 May 2020 06:21:57 +0000 (08:21 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 7 May 2020 06:21:57 +0000 (08:21 +0200)
litex/soc/software/bios/sdram.c

index 517a223a144a5c94f4852873af7e88d5b7fa57e7..6121fb0b190998d5a68fb1d11e66b408079e3892 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, seed);
+                       return 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, seed);
+                       return lfsr(32, prv);
                        prs[p][i] = prv;
                }