/* It returns amount of memory configured in bytes.  */
phys_size_t fsl_ddr_sdram(void)
/* It returns amount of memory configured in bytes.  */
phys_size_t fsl_ddr_sdram(void)
{
	fsl_ddr_info_t info;
	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 = board_need_mem_reset;
	info.board_mem_reset = board_assert_mem_reset;
	info.board_mem_de_reset = board_deassert_mem_reset;
	remove_unused_controllers(&info);
	return __fsl_ddr_sdram(&info);
}