nb/intel/sandybridge: Replace and-zero with assignment

The intent here is to clear the register, so a simple write will work.

Change-Id: I547805059e911942ac2cac7bd2165af23d926a2b
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47608
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Angel Pons 2020-11-14 01:12:24 +01:00
parent 60971dcd01
commit cf5dd49d3c
1 changed files with 2 additions and 2 deletions

View File

@ -2026,7 +2026,7 @@ int write_training(ramctr_timing *ctrl)
printram("CPF\n");
FOR_ALL_CHANNELS FOR_ALL_POPULATED_RANKS FOR_ALL_LANES {
MCHBAR32_AND(IOSAV_By_BW_MASK_ch(channel, lane), 0);
MCHBAR32(IOSAV_By_BW_MASK_ch(channel, lane)) = 0;
}
FOR_ALL_POPULATED_CHANNELS {
@ -2049,7 +2049,7 @@ int write_training(ramctr_timing *ctrl)
program_timings(ctrl, channel);
FOR_ALL_CHANNELS FOR_ALL_POPULATED_RANKS FOR_ALL_LANES {
MCHBAR32_AND(IOSAV_By_BW_MASK_ch(channel, lane), 0);
MCHBAR32(IOSAV_By_BW_MASK_ch(channel, lane)) = 0;
}
return 0;
}