aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne/early_fch.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-12-08 17:27:30 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-12-09 18:44:40 +0000
commit153f92adbed953c068b09b3ef7d9f5369488c13c (patch)
treee5d0826b26a5698f10cf3a344d0330c1f045ea72 /src/soc/amd/cezanne/early_fch.c
parent4be064a1d8b3693954c637e578cf3d6aec625105 (diff)
soc/amd/cezanne: add basic early FCH initialization to bootblock
Change-Id: I1c6d32a5498a7adcee3c8c3145f85e9dba26bf7e Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48475 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd/cezanne/early_fch.c')
-rw-r--r--src/soc/amd/cezanne/early_fch.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/early_fch.c b/src/soc/amd/cezanne/early_fch.c
new file mode 100644
index 0000000000..6616d075b9
--- /dev/null
+++ b/src/soc/amd/cezanne/early_fch.c
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <amdblocks/acpimmio.h>
+#include <amdblocks/smbus.h>
+#include <console/console.h>
+#include <soc/southbridge.h>
+
+/* Before console init */
+void fch_pre_init(void)
+{
+ enable_acpimmio_decode_pm04();
+ fch_smbus_init();
+ fch_enable_cf9_io();
+ fch_enable_legacy_io();
+}
+
+/* After console init */
+void fch_early_init(void)
+{
+ fch_print_pmxc0_status();
+}