diff options
author | Tristan Shieh <tristan.shieh@mediatek.com> | 2018-06-06 12:52:20 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-06-07 07:42:43 +0000 |
commit | f42db110d0174f05745e3558067d114eae37825b (patch) | |
tree | a5a52a630e8704369f57d6d21077e95c13733cb7 /src/soc/mediatek/mt8173/dramc_pi_calibration_api.c | |
parent | 794284ff0ee92f7f60c4d33dbf43bf007979389c (diff) | |
download | coreboot-f42db110d0174f05745e3558067d114eae37825b.tar.gz coreboot-f42db110d0174f05745e3558067d114eae37825b.tar.bz2 coreboot-f42db110d0174f05745e3558067d114eae37825b.zip |
mediatek: Refine whitespace and formating changes
This patch fix whitespace and formating issues:
1. Using two spaces between code and single line comment.
2. No space after asterisk.
3. Fix checkpatch error.
4. Remove spaces after cast operators.
BUG=b:80501386
BRANCH=none
TEST=the refactored code works fine on the new platform (with the rest
of the patches applied) and Elm platform
Change-Id: Ib36c99b141c94220776fab606eb36af8f64f65bb
Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com>
Reviewed-on: https://review.coreboot.org/26880
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8173/dramc_pi_calibration_api.c')
-rw-r--r-- | src/soc/mediatek/mt8173/dramc_pi_calibration_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/mediatek/mt8173/dramc_pi_calibration_api.c b/src/soc/mediatek/mt8173/dramc_pi_calibration_api.c index e77ec7cb1f52..8ed82b119fdf 100644 --- a/src/soc/mediatek/mt8173/dramc_pi_calibration_api.c +++ b/src/soc/mediatek/mt8173/dramc_pi_calibration_api.c @@ -37,7 +37,7 @@ void sw_impedance_cal(u32 channel, dramc_dbg_msg("[Imp Calibration] DRVP:%d\n", params->impedance_drvp); dramc_dbg_msg("[Imp Calibration] DRVN:%d\n", params->impedance_drvn); - mask = 0xf << 28 | 0xf << 24 | 0xf << 12 | 0xf << 8; /* driving */ + mask = 0xf << 28 | 0xf << 24 | 0xf << 12 | 0xf << 8; /* driving */ value = params->impedance_drvp << 28 | params->impedance_drvn << 24 | params->impedance_drvp << 12 | params->impedance_drvn << 8; @@ -101,7 +101,7 @@ void ca_training(u32 channel, const struct mt8173_sdram_params *sdram_params) /* CKE and CS delay */ ca_shift_avg32 = (u32)(ca_shift_avg8 + (CATRAINING_NUM >> 1)); - ca_shift_avg32 /= (u32) CATRAINING_NUM; + ca_shift_avg32 /= (u32)CATRAINING_NUM; /* CKEDLY */ clrsetbits_le32(&ch[channel].ddrphy_regs->cmddly[4], @@ -201,7 +201,7 @@ static void set_gw_coarse_factor(u32 channel, u8 curr_val) coarse_tune_start = 15; } - curr_val_p1 = curr_val + 2; /* diff is 0.5T */ + curr_val_p1 = curr_val + 2; /* diff is 0.5T */ /* Rank 0 P0/P1 coarse tune settings */ clrsetbits_le32(&ch[channel].ao_regs->dqsctl1, @@ -248,7 +248,7 @@ static void set_gw_coarse_factor_rank1(u32 channel, u8 curr_val, u8 dqsinctl) { u8 curr_val_p1, r1dqsgate, r1dqsgate_p1; - curr_val_p1 = curr_val + 2; /* diff is 0.5T */ + curr_val_p1 = curr_val + 2; /* diff is 0.5T */ clrsetbits_le32(&ch[channel].ao_regs->dqsctl2, 0xf << DQSCTL2_DQSINCTL_SHIFT, |