From: Gabriel Somlo Date: Mon, 9 Mar 2020 14:24:30 +0000 (-0400) Subject: software/bios: fixup for Ultrascale SDRAM debug X-Git-Tag: 24jan2021_ls180~576^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d15e1f7f8e178e0c9ce49f802bcbfe642446fbf;p=litex.git software/bios: fixup for Ultrascale SDRAM debug Keep CSR accesses independent of csr_data_width and csr_alignment. Signed-off-by: Gabriel Somlo --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index 5c9ec680..7654caaf 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -1063,6 +1063,7 @@ static void sdrmproff(void) void sdrmpr(void) { int module, phase; + unsigned char buf[DFII_PIX_DATA_BYTES]; printf("Read SDRAM MPR...\n"); /* rst phy */ @@ -1084,8 +1085,10 @@ void sdrmpr(void) for (module=0; module < NBMODULES; module++) { printf("m%d: ", module); for(phase=0; phase