summaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-07-14 01:16:30 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-07-15 17:03:30 +0000
commite84c3f189876630acfc2e09310300de8048e4fc6 (patch)
treeda36a9f665129118906f7b0ccc700cbd21c058d3 /src/soc/amd/cezanne
parent64077de176312638dd81c8743debac9223768edb (diff)
soc/amd/*/mca: factor out common MCA/MCAX check & print functionality
For Cezanne stubs are added for the functions that the SoC-specific code needs to provide. Since the mca_is_valid_bank stub on Cezanne always returns false, the checks get skipped for it at the moment. The actual functionality will be added in a later patch. Change-Id: Ic31e9b1ca7f8fac0721c95935c79150d7f774aa4 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56290 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/amd/cezanne')
-rw-r--r--src/soc/amd/cezanne/mca.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/soc/amd/cezanne/mca.c b/src/soc/amd/cezanne/mca.c
index 68fae29204..77006a713c 100644
--- a/src/soc/amd/cezanne/mca.c
+++ b/src/soc/amd/cezanne/mca.c
@@ -1,8 +1,19 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/mca.h>
+#include <types.h>
-void mca_check_all_banks(void)
+bool mca_has_expected_bank_count(void)
{
- /* TODO: Implement MCAX register checking and BERT table generation. */
+ return true;
+}
+
+bool mca_is_valid_bank(unsigned int bank)
+{
+ return false;
+}
+
+const char *mca_get_bank_name(unsigned int bank)
+{
+ return "";
}