/* fsl_ddr_sdram_size(first_ctrl, last_intlv) - This function only returns the size of the total memory without setting ddr control registers.  */
phys_size_t fsl_ddr_sdram_size(void)
/* fsl_ddr_sdram_size(first_ctrl, last_intlv) - This function only returns the size of the total memory without setting ddr control registers.  */
phys_size_t fsl_ddr_sdram_size(void)
{
	fsl_ddr_info_t  info;
	unsigned long long total_memory = 0;
	memset(&info, 0 , sizeof(fsl_ddr_info_t));
	info.mem_base = CONFIG_SYS_FSL_DDR_SDRAM_BASE_PHY;
	info.first_ctrl = 0;
	info.num_ctrls = CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS;
	info.dimm_slots_per_ctrl = CONFIG_DIMM_SLOTS_PER_CTLR;
	info.board_need_mem_reset = NULL;
	remove_unused_controllers(&info);
	total_memory = fsl_ddr_compute(&info, STEP_GET_SPD, 1);
	return total_memory;
}