aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/amd/birman/bootblock.c
diff options
context:
space:
mode:
authorMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-06 16:29:07 -0600
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-10 21:50:34 +0000
commit3c963d9e88240eaf4ea6eff8af7590d7c473acd4 (patch)
tree6004817a9b79d0c3f3f54d6eb7f6ba8a016bfc1d /src/mainboard/amd/birman/bootblock.c
parentf225d761ba1ae6dea878c33668b590fe94293fe5 (diff)
mb/amd/birman: Add framework for morgana crb birman
birman is the reference board for the morgana SoC. It needs to be updated to match the actual board design as well. Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Change-Id: I4b16854c954949217a76c3d4f04ddc4001f64337 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68196 Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/amd/birman/bootblock.c')
-rw-r--r--src/mainboard/amd/birman/bootblock.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/amd/birman/bootblock.c b/src/mainboard/amd/birman/bootblock.c
new file mode 100644
index 0000000000..a6e525dcd4
--- /dev/null
+++ b/src/mainboard/amd/birman/bootblock.c
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <bootblock_common.h>
+#include <soc/espi.h>
+#include "ec.h"
+#include "gpio.h"
+
+void bootblock_mainboard_early_init(void)
+{
+ mainboard_program_early_gpios();
+
+ espi_switch_to_spi1_pads();
+}
+
+void bootblock_mainboard_init(void)
+{
+ birman_ec_init();
+}