From f42db110d0174f05745e3558067d114eae37825b Mon Sep 17 00:00:00 2001 From: Tristan Shieh Date: Wed, 6 Jun 2018 12:52:20 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/26880 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/soc/mediatek/mt8173/dramc_pi_basic_api.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/soc/mediatek/mt8173/dramc_pi_basic_api.c') diff --git a/src/soc/mediatek/mt8173/dramc_pi_basic_api.c b/src/soc/mediatek/mt8173/dramc_pi_basic_api.c index 83ba9995f3..e471b4f312 100644 --- a/src/soc/mediatek/mt8173/dramc_pi_basic_api.c +++ b/src/soc/mediatek/mt8173/dramc_pi_basic_api.c @@ -264,7 +264,7 @@ static void mem_pll_phase_cali(u32 channel) } } - udelay(20); /* delay 20us for external loop pll stable */ + udelay(20); /* delay 20us for external loop pll stable */ /* 2. enable mempll 2 3 4 jitter meter */ for (i = 0; i < 3; i++) @@ -323,7 +323,7 @@ void mem_pll_init(const struct mt8173_sdram_params *sdram_params) for (channel = 0; channel < CHANNEL_NUM; channel++) mem_pll_init_set_params(channel); - udelay(1); /* wait after da_mpll_sdm_iso_en goes low */ + udelay(1); /* wait after da_mpll_sdm_iso_en goes low */ /* only set once in MPLL */ mt_mem_pll_config_post(); @@ -391,7 +391,7 @@ void mem_pll_init(const struct mt8173_sdram_params *sdram_params) /* unrequest mempll reset/pdn mode and wait settle */ clrbits_le32(&mt8173_spm->power_on_val0, 0x1 << 27); - udelay(31); /* PLL ready */ + udelay(31); /* PLL ready */ for (channel = 0; channel < CHANNEL_NUM; channel++) mem_pll_init_phase_sync(channel); @@ -402,7 +402,7 @@ void mem_pll_init(const struct mt8173_sdram_params *sdram_params) for (channel = 0; channel < CHANNEL_NUM; channel++) mem_pll_phase_cali(channel); - div2_phase_sync(); /* phase sync for channel B */ + div2_phase_sync(); /* phase sync for channel B */ mt_mem_pll_mux(); } @@ -584,7 +584,7 @@ void dramc_init(u32 channel, const struct mt8173_sdram_params *sdram_params) write32(&ch[channel].ao_regs->padctl4, 0x1 << 2 | 0x1 << 0); - udelay(200); /* tINIT3 > 200us */ + udelay(200); /* tINIT3 > 200us */ write32(&ch[channel].ao_regs->gddr3ctl1, 0x1 << 24 | 0x1 << 20); @@ -682,7 +682,7 @@ void dramc_phy_reset(u32 channel) setbits_le32(&ch[channel].ao_regs->gddr3ctl1, 1 << GDDR3CTL1_RDATRST_SHIFT); - udelay(1); /* delay 1ns */ + udelay(1); /* delay 1ns */ clrbits_le32(&ch[channel].ao_regs->gddr3ctl1, 1 << GDDR3CTL1_RDATRST_SHIFT); -- cgit v1.2.3