Hung-Te Lin has submitted this change. ( https://review.coreboot.org/c/coreboot/+/56203 )
Change subject: vc/mediatek/mt8195: Remove redundant code ......................................................................
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 --- M src/vendorcode/mediatek/mt8195/dramc/emi.c 1 file changed, 1 insertion(+), 10 deletions(-)
Approvals: build bot (Jenkins): Verified Yu-Ping Wu: Looks good to me, approved
diff --git a/src/vendorcode/mediatek/mt8195/dramc/emi.c b/src/vendorcode/mediatek/mt8195/dramc/emi.c index 0804458..6649e82 100644 --- a/src/vendorcode/mediatek/mt8195/dramc/emi.c +++ b/src/vendorcode/mediatek/mt8195/dramc/emi.c @@ -712,22 +712,13 @@ _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;