lib/sw_apps/zynq_dram_test/src/test01.c
int ddrc_get()
{
  int i, addr, data;
  // init regs
  for (i=0; i<80; i++)
  {
    addr = ddrc_reg_values[2*i + 0];
    data = REG_READ(addr);
    ddrc_reg_values[2*i + 1] = data;
  }
  // ctrl reg is read twice, clr the en bit in the 1st instance
  update_reglist(&ddrc_reg_values[0], 80, ddrc_reg_values[0], 0,  1, 0);
  printf("    ** read all ddrc regs \r\n");
  return 0;
}
/****************************************************************************
 * Function: ddrc_get
 * Description: Get Current state of the DDR controller regs
 ****************************************************************************/
ddrc_get
Description: Get Current state of the DDR controller regs
ddrc_get Description : Get Current state of the DDR controller regs
int ddrc_get()
{
  int i, addr, data;
  for (i=0; i<80; i++)
  {
    addr = ddrc_reg_values[2*i + 0];
    data = REG_READ(addr);
    ddrc_reg_values[2*i + 1] = data;
  }
  update_reglist(&ddrc_reg_values[0], 80, ddrc_reg_values[0], 0,  1, 0);
  printf("    ** read all ddrc regs \r\n");
  return 0;
}
int ddrc_get ( ) { int i , addr , data ; for ( i = 0 ; i < 80 ; i ++ ) { addr = ddrc_reg_values [ 2 * i + 0 ] ; data = REG_READ ( addr ) ; ddrc_reg_values [ 2 * i + 1 ] = data ; } update_reglist ( & ddrc_reg_values [ 0 ] , 80 , ddrc_reg_values [ 0 ] , 0 , 1 , 0 ) ; printf ( " \r \n " ) ; return 0 ; }
Function: ddrc_get
 Description: Get Current state of the DDR controller regs
Function : ddrc_get Description : Get Current state of the DDR controller regs
// init regs // ctrl reg is read twice, clr the en bit in the 1st instance