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:
Ryan Chuang 2021-07-09 16:21:30 +08:00 committed by Hung-Te Lin
parent 7cf3787a53
commit f1cf5ee893
1 changed files with 1 additions and 10 deletions

View File

@ -712,22 +712,13 @@ int get_rank_nr_by_emi(void)
_Static_assert(DRAMC_MAX_RK > 1, "rank number is violated"); _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]) void get_rank_size_by_emi(unsigned long long dram_rank_size[DRAMC_MAX_RK])
{ {
//int i;
unsigned int quad_ch_ratio; unsigned int quad_ch_ratio;
//unsigned int col_bit, row_bit;
unsigned long long ch0_rank0_size, ch0_rank1_size; unsigned long long ch0_rank0_size, ch0_rank1_size;
unsigned long long ch1_rank0_size, ch1_rank1_size; unsigned long long ch1_rank0_size, ch1_rank1_size;
unsigned int cen_emi_conh = mt_emi_sync_read(EMI_CONH); unsigned int cen_emi_conh = mt_emi_sync_read(EMI_CONH);
unsigned long long dq_width; unsigned long long dq_width;
switch (mt_get_dram_type_from_hw_trap()) {
case TYPE_LPDDR4X:
case TYPE_LPDDR4:
dq_width = 2; dq_width = 2;
break;
default:
ASSERT(0);
}
dram_rank_size[0] = 0; dram_rank_size[0] = 0;
dram_rank_size[1] = 0; dram_rank_size[1] = 0;