summaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2019-03-15 22:20:41 +0530
committerSubrata Banik <subrata.banik@intel.com>2019-03-19 04:45:58 +0000
commitb1434fce01c31e7ed3ce6623a2fae635381b0b4b (patch)
tree95335799e0b60c51a4e8a77eb084873a120387b8 /src/northbridge/intel
parentd0e218384f2c9127f701a41b0b8add08528c1450 (diff)
Fix 'unsigned int' to bare use of 'unsigned'
Change-Id: Iee09b601045d7785a0977a4f7ed7385b1d311044 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31913 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/sandybridge/gma.c2
-rw-r--r--src/northbridge/intel/sandybridge/raminit_common.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/northbridge/intel/sandybridge/gma.c b/src/northbridge/intel/sandybridge/gma.c
index 00180fe4f0..d302c52c35 100644
--- a/src/northbridge/intel/sandybridge/gma.c
+++ b/src/northbridge/intel/sandybridge/gma.c
@@ -300,7 +300,7 @@ static inline void gtt_write_powermeter(const struct gt_powermeter *pm)
#define GTT_RETRY 1000
int gtt_poll(u32 reg, u32 mask, u32 value)
{
- unsigned try = GTT_RETRY;
+ unsigned int try = GTT_RETRY;
u32 data;
while (try--) {
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);