intel/pineview: Don't try to store 34 bits in 32

Mask out the bit that doesn't fit in 32bits, so gcc 6.1 is happy

Change-Id: I13e2b41742206b8d86b90314b80cc324c00ae637
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/14639
Reviewed-by: Damien Zammit <damien@zamaudio.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Stefan Reinauer 2016-05-06 13:48:39 -07:00
parent 2a6f251f4d
commit 66fbeaec98
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ static void sdram_timings(struct sysinfo *s)
MCHBAR8(0x26c) = (MCHBAR8(0x26c) & ~0xfa) | ((u8)(reg32 >> 24)); MCHBAR8(0x26c) = (MCHBAR8(0x26c) & ~0xfa) | ((u8)(reg32 >> 24));
MCHBAR8(0x271) = MCHBAR8(0x271) & ~(1 << 7); MCHBAR8(0x271) = MCHBAR8(0x271) & ~(1 << 7);
MCHBAR8(0x274) = MCHBAR8(0x274) & ~0x6; MCHBAR8(0x274) = MCHBAR8(0x274) & ~0x6;
reg32 = (u32) ((6 << 30) | (4 << 25) | (1 << 20) | (8 << 15) | reg32 = (u32) (((6 & 0x03) << 30) | (4 << 25) | (1 << 20) | (8 << 15) |
(6 << 10) | (4 << 5) | 1); (6 << 10) | (4 << 5) | 1);
MCHBAR32(0x278) = reg32; MCHBAR32(0x278) = reg32;