aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/haswell/registers
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-13 21:45:45 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-10-23 18:13:17 +0000
commit82654b3fe64e46be31cec206798c80a7616e9ee9 (patch)
tree0946b616cfa4142e21fa04eee18b1f35fa2ca3d3 /src/northbridge/intel/haswell/registers
parenta0cb713ce2caa065ae9d2de71f02d4cb2fd4914d (diff)
nb/intel/haswell/raminit.c: Clean up local variables
Remove unnecessary arrays, use unsigned types for non-negative values and constify where possible. Also define NUM_CHANNELS and NUM_SLOTS. Change-Id: Ie4eb79d9c48194538c0ee41dca48ea32798ad8c6 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46363 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/haswell/registers')
-rw-r--r--src/northbridge/intel/haswell/registers/mchbar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/northbridge/intel/haswell/registers/mchbar.h b/src/northbridge/intel/haswell/registers/mchbar.h
index 60e16e0b98..96d08bfc22 100644
--- a/src/northbridge/intel/haswell/registers/mchbar.h
+++ b/src/northbridge/intel/haswell/registers/mchbar.h
@@ -3,6 +3,10 @@
#ifndef __HASWELL_REGISTERS_MCHBAR_H__
#define __HASWELL_REGISTERS_MCHBAR_H__
+/* Memory controller characteristics */
+#define NUM_CHANNELS 2
+#define NUM_SLOTS 2
+
/* Register definitions */
#define MAD_CHNL 0x5000 /* Address Decoder Channel Configuration */
#define MAD_DIMM(ch) (0x5004 + (ch) * 4)