diff options
author | Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> | 2021-07-09 16:21:30 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-07-13 01:46:30 +0000 |
commit | f1cf5ee89339fcf2e49e25d9810d72c18ec7113d (patch) | |
tree | e196b3a325e6c8371fcc8c90317fbe9bc19e8d17 /src | |
parent | 7cf3787a5303df7e56ac4c84081d4ad39239ba3c (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/vendorcode/mediatek/mt8195/dramc/emi.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/vendorcode/mediatek/mt8195/dramc/emi.c b/src/vendorcode/mediatek/mt8195/dramc/emi.c index 080445821e..6649e82b97 100644 --- a/src/vendorcode/mediatek/mt8195/dramc/emi.c +++ b/src/vendorcode/mediatek/mt8195/dramc/emi.c @@ -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); - } + dq_width = 2; dram_rank_size[0] = 0; dram_rank_size[1] = 0; |