vendorcode/mediatek/mt8192: Add or remove brackets

This fixes clang compilation warnings about logic problems and
superfluous brackets.

Change-Id: Ib4333b834ee2afb3147edf4c223724a851f159ba
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74545
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Xixi Chen <xixi.chen@mediatek.corp-partner.google.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Arthur Heymans 2023-04-18 20:09:51 +02:00 committed by Felix Held
parent 77b590eed1
commit 7277b26f05
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ static void lp4_dram_init_single_rank(DRAMC_CTX_T *p,LP4_DRAM_CONFIG_T *tr,U8 ra
LP4_MRS(p, 1, MR1 , rank); LP4_MRS(p, 1, MR1 , rank);
LP4_MRS(p, 2, MR2 , rank); LP4_MRS(p, 2, MR2 , rank);
//reverse the DBI //reverse the DBI
MR3 = ((!tr->DBI_WR & 1)<<7) | ((!tr->DBI_RD & 1)<<6) | (( PDDS & 7)<<3) | ((PPRP & 1)<<2) | ((tr->WR_PST & 1)<<1) | ((PU_CAL & 1)<<0); MR3 = (((!tr->DBI_WR) & 1)<<7) | (((!tr->DBI_RD) & 1)<<6) | (( PDDS & 7)<<3) | ((PPRP & 1)<<2) | ((tr->WR_PST & 1)<<1) | ((PU_CAL & 1)<<0);
LP4_MRS(p, 3, MR3 , rank); LP4_MRS(p, 3, MR3 , rank);
LP4_MRS(p, 11, MR11 , rank); LP4_MRS(p, 11, MR11 , rank);
LP4_MRS(p, 12, MR12 , rank); LP4_MRS(p, 12, MR12 , rank);

View File

@ -987,7 +987,7 @@ static void vCalibration_Flow_LP4(DRAMC_CTX_T *p)
DramcTxWindowPerbitCal(p, TX_DQ_DQS_MOVE_DQ_ONLY, FALSE, AUTOK_OFF); DramcTxWindowPerbitCal(p, TX_DQ_DQS_MOVE_DQ_ONLY, FALSE, AUTOK_OFF);
#if TX_K_DQM_WITH_WDBI #if TX_K_DQM_WITH_WDBI
if ((p->DBI_W_onoff[p->dram_fsp]==DBI_ON)) if (p->DBI_W_onoff[p->dram_fsp]==DBI_ON)
{ {
// K DQM with DBI_ON, and check DQM window spec. // K DQM with DBI_ON, and check DQM window spec.
//msg("[TX_K_DQM_WITH_WDBI] Step1: K DQM with DBI_ON, and check DQM window spec.\n\n"); //msg("[TX_K_DQM_WITH_WDBI] Step1: K DQM with DBI_ON, and check DQM window spec.\n\n");