vc/mediatek/mt8195: Remove redundant code
Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> Change-Id: I10b2d3c6cb3480f9e3e3232b5ce87ecf7074bbbf Reviewed-on: https://review.coreboot.org/c/coreboot/+/56203 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
parent
7cf3787a53
commit
f1cf5ee893
|
@ -712,22 +712,13 @@ int get_rank_nr_by_emi(void)
|
|||
_Static_assert(DRAMC_MAX_RK > 1, "rank number is violated");
|
||||
void get_rank_size_by_emi(unsigned long long dram_rank_size[DRAMC_MAX_RK])
|
||||
{
|
||||
//int i;
|
||||
unsigned int quad_ch_ratio;
|
||||
//unsigned int col_bit, row_bit;
|
||||
unsigned long long ch0_rank0_size, ch0_rank1_size;
|
||||
unsigned long long ch1_rank0_size, ch1_rank1_size;
|
||||
unsigned int cen_emi_conh = mt_emi_sync_read(EMI_CONH);
|
||||
unsigned long long dq_width;
|
||||
|
||||
switch (mt_get_dram_type_from_hw_trap()) {
|
||||
case TYPE_LPDDR4X:
|
||||
case TYPE_LPDDR4:
|
||||
dq_width = 2;
|
||||
break;
|
||||
default:
|
||||
ASSERT(0);
|
||||
}
|
||||
|
||||
dram_rank_size[0] = 0;
|
||||
dram_rank_size[1] = 0;
|
||||
|
|
Loading…
Reference in New Issue