summaryrefslogtreecommitdiff
path: root/src/soc/intel/broadwell/include
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-13 23:37:07 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-10-23 20:29:07 +0000
commit162a73759901e0292bb7da593c31391bc0230bc0 (patch)
tree64a56d5f017e1a08404af3a9cb683c1838adee97 /src/soc/intel/broadwell/include
parent973c9d45adc7f205a68c005083d21f2337616404 (diff)
downloadcoreboot-162a73759901e0292bb7da593c31391bc0230bc0.tar.xz
soc/intel/broadwell: Remove unnecessary array
The MAD_DIMM registers can be read within the loop just fine. Change-Id: Id0c79aaa506f7545826445bc5b065408105b46ba Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46369 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/intel/broadwell/include')
-rw-r--r--src/soc/intel/broadwell/include/soc/systemagent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/broadwell/include/soc/systemagent.h b/src/soc/intel/broadwell/include/soc/systemagent.h
index 920b710d40..cc0dc4f0c5 100644
--- a/src/soc/intel/broadwell/include/soc/systemagent.h
+++ b/src/soc/intel/broadwell/include/soc/systemagent.h
@@ -87,6 +87,9 @@
#define MCHBAR16(x) *((volatile u16 *)(MCH_BASE_ADDRESS + (x)))
#define MCHBAR32(x) *((volatile u32 *)(MCH_BASE_ADDRESS + (x)))
+/* Memory controller characteristics */
+#define NUM_CHANNELS 2
+
#define MAD_CHNL 0x5000
#define MAD_DIMM(ch) (0x5004 + 4 * (ch))