From 2ea8b945ec181aff42011fc73e503eee91c72545 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sun, 19 Dec 2021 17:15:48 +0100 Subject: nb/intel/ironlake: Use `NUM_CHANNELS` macro Change-Id: I3f4dc26699e3618740af5a0ade1a19599d5a2cc7 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/60225 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/northbridge/intel/ironlake/raminit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/northbridge') diff --git a/src/northbridge/intel/ironlake/raminit.c b/src/northbridge/intel/ironlake/raminit.c index 72c3028df8..9277477a8e 100644 --- a/src/northbridge/intel/ironlake/raminit.c +++ b/src/northbridge/intel/ironlake/raminit.c @@ -792,7 +792,7 @@ static void compute_derived_timings(struct raminfo *info) info->max_slots_used_in_channel = 2; else info->max_slots_used_in_channel = 1; - for (channel = 0; channel < 2; channel++) + for (channel = 0; channel < NUM_CHANNELS; channel++) mchbar_write32(0x244 + (channel << 10), ((info->revision < 8) ? 1 : 0x200) | ((2 - info->max_slots_used_in_channel) << 17) | -- cgit v1.2.3