soc/mediatek/mt8183: Fix set but unused variables

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I1c995d942fa25a9268fbf716034335937df57714
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75036
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Arthur Heymans 2023-05-08 23:10:28 +02:00 committed by Elyes Haouas
parent eabae5a681
commit ed59e972f0
1 changed files with 0 additions and 7 deletions

View File

@ -1824,7 +1824,6 @@ static void dramc_set_tx_best_dly_factor(u8 chn, u8 rank_start, u8 type,
{ {
u32 dq_large = 0, dq_large_oen = 0, dq_small = 0, dq_small_oen = 0, adjust_center = 1; u32 dq_large = 0, dq_large_oen = 0, dq_small = 0, dq_small_oen = 0, adjust_center = 1;
u32 dqm_large = 0, dqm_large_oen = 0, dqm_small = 0, dqm_small_oen = 0; u32 dqm_large = 0, dqm_large_oen = 0, dqm_small = 0, dqm_small_oen = 0;
u16 dq_oen[DQS_NUMBER] = {0}, dqm_oen[DQS_NUMBER] = {0};
struct tx_dly_tune dqdly_tune[DQS_NUMBER] = {0}; struct tx_dly_tune dqdly_tune[DQS_NUMBER] = {0};
struct tx_dly_tune dqmdly_tune[DQS_NUMBER] = {0}; struct tx_dly_tune dqmdly_tune[DQS_NUMBER] = {0};
@ -1843,12 +1842,6 @@ static void dramc_set_tx_best_dly_factor(u8 chn, u8 rank_start, u8 type,
dqm_large_oen += dqmdly_tune[i].coarse_tune_large_oen << (i * 4); dqm_large_oen += dqmdly_tune[i].coarse_tune_large_oen << (i * 4);
dqm_small += dqmdly_tune[i].coarse_tune_small << (i * 4); dqm_small += dqmdly_tune[i].coarse_tune_small << (i * 4);
dqm_small_oen += dqmdly_tune[i].coarse_tune_small_oen << (i * 4); dqm_small_oen += dqmdly_tune[i].coarse_tune_small_oen << (i * 4);
dq_oen[i] = (dqdly_tune[i].coarse_tune_large_oen << 3) +
(dqdly_tune[i].coarse_tune_small_oen << 5) + dqdly_tune[i].fine_tune;
dqm_oen[i] = (dqmdly_tune[i].coarse_tune_large_oen << 3) +
(dqmdly_tune[i].coarse_tune_small_oen << 5) +
dqmdly_tune[i].fine_tune;
} }
for (size_t rank = rank_start; rank < RANK_MAX; rank++) { for (size_t rank = rank_start; rank < RANK_MAX; rank++) {