Merge pull request #419 from gsomlo/gls-ultra-sdram-fixup

software/bios: fixup for Ultrascale SDRAM debug
This commit is contained in:
enjoy-digital 2020-03-10 11:43:23 +01:00 committed by GitHub
commit c4ce6da6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1063,6 +1063,7 @@ static void sdrmproff(void)
void sdrmpr(void) void sdrmpr(void)
{ {
int module, phase; int module, phase;
unsigned char buf[DFII_PIX_DATA_BYTES];
printf("Read SDRAM MPR...\n"); printf("Read SDRAM MPR...\n");
/* rst phy */ /* rst phy */
@ -1084,8 +1085,10 @@ void sdrmpr(void)
for (module=0; module < NBMODULES; module++) { for (module=0; module < NBMODULES; module++) {
printf("m%d: ", module); printf("m%d: ", module);
for(phase=0; phase<DFII_NPHASES; phase++) { for(phase=0; phase<DFII_NPHASES; phase++) {
printf("%d", MMPTR(sdram_dfii_pix_rddata_addr[phase]+4*(NBMODULES-module-1)) & 0x1); csr_rd_buf_uint8(sdram_dfii_pix_rddata_addr[phase],
printf("%d", MMPTR(sdram_dfii_pix_rddata_addr[phase]+4*(2*NBMODULES-module-1)) & 0x1); buf, DFII_PIX_DATA_BYTES);
printf("%d", buf[ NBMODULES-module-1] & 0x1);
printf("%d", buf[2*NBMODULES-module-1] & 0x1);
} }
printf("\n"); printf("\n");
} }