summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-11-18 15:11:02 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-11-22 13:46:09 +0000
commit3a9980767e4ce054630cf7bb92fdb8a5405de53c (patch)
tree646488e023c5e6fbd6c7d0781168b3116cba9c97 /src/northbridge/intel/sandybridge
parentab6d94430e411f8549292d0782c07d4bbf7c19d8 (diff)
src/northbridge: Remove unnecessary space after casts
Change-Id: If6c1a17d15e24ecdc56b0cc9cb7e7dc7d6e6936b Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69813 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/sandybridge')
-rw-r--r--src/northbridge/intel/sandybridge/raminit_common.c6
-rw-r--r--src/northbridge/intel/sandybridge/raminit_native.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c
index 9ef491baed..4e958150dd 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.c
+++ b/src/northbridge/intel/sandybridge/raminit_common.c
@@ -693,9 +693,9 @@ static u32 make_mr0(ramctr_timing *ctrl, u8 rank)
/* Convert CAS to MCH register friendly */
if (ctrl->CAS < 12) {
- mch_cas = (u16) ((ctrl->CAS - 4) << 1);
+ mch_cas = (u16)((ctrl->CAS - 4) << 1);
} else {
- mch_cas = (u16) (ctrl->CAS - 12);
+ mch_cas = (u16)(ctrl->CAS - 12);
mch_cas = ((mch_cas << 1) | 0x1);
}
@@ -1732,7 +1732,7 @@ static void train_write_flyby(ramctr_timing *ctrl)
FOR_ALL_LANES {
u64 res = mchbar_read32(lane_base[lane] + GDCRTRAININGRESULT1(channel));
- res |= ((u64) mchbar_read32(lane_base[lane] +
+ res |= ((u64)mchbar_read32(lane_base[lane] +
GDCRTRAININGRESULT2(channel))) << 32;
old = ctrl->timings[channel][slotrank].lanes[lane].tx_dqs;
diff --git a/src/northbridge/intel/sandybridge/raminit_native.c b/src/northbridge/intel/sandybridge/raminit_native.c
index 7141116840..a46390ca28 100644
--- a/src/northbridge/intel/sandybridge/raminit_native.c
+++ b/src/northbridge/intel/sandybridge/raminit_native.c
@@ -555,7 +555,7 @@ static void dram_freq(ramctr_timing *ctrl)
* Exit early to prevent a system hang.
*/
reg1 = mchbar_read32(MC_BIOS_DATA);
- val2 = (u8) reg1;
+ val2 = (u8)reg1;
if (val2)
return;
@@ -577,7 +577,7 @@ static void dram_freq(ramctr_timing *ctrl)
/* Step 3 - Verify lock frequency */
reg1 = mchbar_read32(MC_BIOS_DATA);
- val2 = (u8) reg1;
+ val2 = (u8)reg1;
if (val2 >= ctrl->FRQ) {
printk(BIOS_DEBUG, "MPLL frequency is set at : %d MHz\n",
(1000 << 8) / ctrl->tCK);