UPSTREAM: mediatek/mt8173: Fix whitespace and text
These are some minor changes that were made at coreboot.org as patches were pulled in. * Add whitespace around comments * Remove trailing whitespace from text * Update error text for grammar BRANCH=none BUG=none TEST=none Change-Id: Ic72b1577de80010f538dfe6ee8ffefffde8cfd23 Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/361361 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
96c4fc0aea
commit
790d559ebb
2 changed files with 4 additions and 4 deletions
|
|
@ -539,7 +539,7 @@ void dramc_init(u32 channel, const struct mt8173_sdram_params *sdram_params)
|
|||
write32(&ch[channel].ao_regs->conf1,
|
||||
sdram_params->ac_timing.conf1);
|
||||
|
||||
/* bit 17,18 would bypass some dummy path*/
|
||||
/* bit 17,18 would bypass some dummy path */
|
||||
write32(&ch[channel].ddrphy_regs->dqsgctl, 0x1 << 31 |
|
||||
0x1 << 30 |
|
||||
0x1 << 17 |
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ static u8 dqs_gw_fine_tune_calib(u32 channel, u8 fine_val)
|
|||
s8 delta[7] = {-48, -32, -16, 0, 16, 32, 48};
|
||||
int matches = 0, sum = 0;
|
||||
|
||||
/*fine tune range from 0 to 127*/
|
||||
/* fine tune range from 0 to 127 */
|
||||
fine_val = min(max(fine_val, 0 - delta[0]), 127 - delta[6]);
|
||||
|
||||
/* test gw fine tune */
|
||||
|
|
@ -322,7 +322,7 @@ static u8 dqs_gw_fine_tune_calib(u32 channel, u8 fine_val)
|
|||
}
|
||||
|
||||
if (matches == 0) {
|
||||
die("[GW] ERROR, No found fine tune\n");
|
||||
die("[GW] ERROR, Fine-Tuning failed.\n");
|
||||
}
|
||||
|
||||
opt_fine_val = fine_val + (sum / matches);
|
||||
|
|
@ -733,7 +733,7 @@ u8 rx_datlat_cal(u32 channel, u8 rank,
|
|||
|
||||
if (err[0]) {
|
||||
/* dle test error */
|
||||
printk(BIOS_ERR, "[DLE] CH:%d calibration ERROR CMP_ERR =%xh, \n",
|
||||
printk(BIOS_ERR, "[DLE] CH:%d calibration ERROR CMP_ERR =%xh,\n",
|
||||
channel, err[0]);
|
||||
} else {
|
||||
/* judge dle test result */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue