1 /* SPDX-License-Identifier: GPL-2.0-only */
5 #include <commonlib/bsd/mem_chip_info.h>
8 size_t sdram_size(void)
10 const struct mem_chip_info
*mc
;
14 size
= mtk_dram_size();
15 printk(BIOS_INFO
, "dram size (romstage): %#lx\n", size
);
19 mc
= cbmem_find(CBMEM_ID_MEM_CHIP_INFO
);
22 size
= mem_chip_info_total_density_bytes(mc
);
24 printk(BIOS_INFO
, "dram size: %#lx\n", size
);
28 void mt_set_emi(struct dramc_param
*dparam
)