summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/birman_plus/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/amd/birman_plus/bootblock.c')
-rw-r--r--src/mainboard/amd/birman_plus/bootblock.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/amd/birman_plus/bootblock.c b/src/mainboard/amd/birman_plus/bootblock.c
new file mode 100644
index 0000000000..1c47e6d890
--- /dev/null
+++ b/src/mainboard/amd/birman_plus/bootblock.c
@@ -0,0 +1,19 @@
+/* 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)
+{
+ if (!CONFIG(SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD))
+ birman_ec_init();
+}