From b1434fce01c31e7ed3ce6623a2fae635381b0b4b Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 15 Mar 2019 22:20:41 +0530 Subject: Fix 'unsigned int' to bare use of 'unsigned' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iee09b601045d7785a0977a4f7ed7385b1d311044 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/31913 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Kyösti Mälkki --- src/northbridge/intel/sandybridge/raminit_common.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/northbridge/intel/sandybridge/raminit_common.c') diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c index fda662f4f6..55df03b8d2 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.c +++ b/src/northbridge/intel/sandybridge/raminit_common.c @@ -1577,8 +1577,8 @@ static int get_precedening_channels(ramctr_timing * ctrl, int target_channel) static void fill_pattern0(ramctr_timing * ctrl, int channel, u32 a, u32 b) { - unsigned j; - unsigned channel_offset = + unsigned int j; + unsigned int channel_offset = get_precedening_channels(ctrl, channel) * 0x40; for (j = 0; j < 16; j++) write32((void *)(0x04000000 + channel_offset + 4 * j), j & 2 ? b : a); @@ -1595,10 +1595,10 @@ static int num_of_channels(const ramctr_timing * ctrl) static void fill_pattern1(ramctr_timing * ctrl, int channel) { - unsigned j; - unsigned channel_offset = + unsigned int j; + unsigned int channel_offset = get_precedening_channels(ctrl, channel) * 0x40; - unsigned channel_step = 0x40 * num_of_channels(ctrl); + unsigned int channel_step = 0x40 * num_of_channels(ctrl); for (j = 0; j < 16; j++) write32((void *)(0x04000000 + channel_offset + j * 4), 0xffffffff); for (j = 0; j < 16; j++) @@ -2125,10 +2125,10 @@ static int test_320c(ramctr_timing * ctrl, int channel, int slotrank) static void fill_pattern5(ramctr_timing * ctrl, int channel, int patno) { - unsigned i, j; - unsigned channel_offset = + unsigned int i, j; + unsigned int channel_offset = get_precedening_channels(ctrl, channel) * 0x40; - unsigned channel_step = 0x40 * num_of_channels(ctrl); + unsigned int channel_step = 0x40 * num_of_channels(ctrl); if (patno) { u8 base8 = 0x80 >> ((patno - 1) % 8); -- cgit v1.2.3