summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/cezanne/include/soc/data_fabric.h
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-02-13 01:42:44 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-02-14 21:48:23 +0000
commitea32c52a0eb9eb9f8cb9ef886e2120d1d5f35753 (patch)
tree5bf83973588e6ef4b767ff961c94da60590ab11c /src/soc/amd/cezanne/include/soc/data_fabric.h
parenteb89ca67ef30dc9c36821081503be98c73781e8d (diff)
downloadcoreboot-ea32c52a0eb9eb9f8cb9ef886e2120d1d5f35753.tar.gz
coreboot-ea32c52a0eb9eb9f8cb9ef886e2120d1d5f35753.tar.bz2
coreboot-ea32c52a0eb9eb9f8cb9ef886e2120d1d5f35753.zip
soc/amd/cezanne: add partial data fabric setup
I'm not 100% sure yet if this code will be common for all AMD SoCs, so I'll add a copy for Cezanne for now. This part of the code should probably be reworked after the initial bringup of Cezanne anyway. DF MMIO register configuration at the beginning of data_fabric_set_mmio_np: === Data Fabric MMIO configuration registers === Addresses are shifted to the right by 16 bits. idx control base limit 0 a3 fc00 febf 1 a3 1000000 fffcffff 2 a3 d000 f7ff 3 a0 0 0 4 a3 fed0 fed0 5 a0 0 0 6 a0 0 0 7 a0 0 0 DF MMIO register configuration at the end of data_fabric_set_mmio_np: === Data Fabric MMIO configuration registers === Addresses are shifted to the right by 16 bits. idx control base limit 0 a3 fc00 febf 1 a3 1000000 fffcffff 2 a3 d000 f7ff 3 10a3 fed0 fedf 4 a0 0 0 5 a0 0 0 6 a0 0 0 7 a0 0 0 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ia243a0cad311eb210d14d6242c52f599db22515c Reviewed-on: https://review.coreboot.org/c/coreboot/+/50624 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/cezanne/include/soc/data_fabric.h')
-rw-r--r--src/soc/amd/cezanne/include/soc/data_fabric.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/include/soc/data_fabric.h b/src/soc/amd/cezanne/include/soc/data_fabric.h
new file mode 100644
index 000000000000..5dcbdd07cef4
--- /dev/null
+++ b/src/soc/amd/cezanne/include/soc/data_fabric.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef AMD_CEZANNE_DATA_FABRIC_H
+#define AMD_CEZANNE_DATA_FABRIC_H
+
+#include <types.h>
+
+#define IOMS0_FABRIC_ID 10
+
+#define NUM_NB_MMIO_REGS 8
+
+void data_fabric_set_mmio_np(void);
+
+#endif /* AMD_CEZANNE_DATA_FABRIC_H */