summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2020-05-07 15:16:15 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-05-13 08:36:05 +0000
commitcd39a41278cbe895a1c34a264f5da20226537893 (patch)
treeb2787040f51ed65cb9bc45b2fa1d5c17681edd70
parent4c7e0d734f198d05f668d3a28fd8362f7382b02c (diff)
soc/amd/picasso: Extract reset flags from northbridge.h
These are not northbridge functions. BUG=b:147042464 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ia9e7d4c7554788a9fdbfdb90e6ead60060cc4c30 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41264 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/amd/picasso/cpu.c2
-rw-r--r--src/soc/amd/picasso/include/soc/reset.h10
-rw-r--r--src/soc/amd/picasso/mca.c2
-rw-r--r--src/soc/amd/picasso/reset.c2
4 files changed, 13 insertions, 3 deletions
diff --git a/src/soc/amd/picasso/cpu.c b/src/soc/amd/picasso/cpu.c
index f3332ac01c..88626971c5 100644
--- a/src/soc/amd/picasso/cpu.c
+++ b/src/soc/amd/picasso/cpu.c
@@ -12,7 +12,7 @@
#include <device/pci_ops.h>
#include <soc/pci_devs.h>
#include <soc/cpu.h>
-#include <soc/northbridge.h>
+#include <soc/reset.h>
#include <soc/smi.h>
#include <soc/iomap.h>
#include <console/console.h>
diff --git a/src/soc/amd/picasso/include/soc/reset.h b/src/soc/amd/picasso/include/soc/reset.h
new file mode 100644
index 0000000000..5fc549f203
--- /dev/null
+++ b/src/soc/amd/picasso/include/soc/reset.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
+#ifndef __PI_PICASSO_RESET_H__
+#define __PI_PICASSO_RESET_H__
+
+void set_warm_reset_flag(void);
+int is_warm_reset(void);
+
+#endif /* __PI_PICASSO_RESET_H__ */
diff --git a/src/soc/amd/picasso/mca.c b/src/soc/amd/picasso/mca.c
index 35a953c492..cea1c51301 100644
--- a/src/soc/amd/picasso/mca.c
+++ b/src/soc/amd/picasso/mca.c
@@ -3,7 +3,7 @@
#include <cpu/x86/msr.h>
#include <acpi/acpi.h>
#include <soc/cpu.h>
-#include <soc/northbridge.h>
+#include <soc/reset.h>
#include <console/console.h>
#include <arch/bert_storage.h>
#include <cper.h>
diff --git a/src/soc/amd/picasso/reset.c b/src/soc/amd/picasso/reset.c
index bf9345ed4c..b6aeb1fb54 100644
--- a/src/soc/amd/picasso/reset.c
+++ b/src/soc/amd/picasso/reset.c
@@ -2,8 +2,8 @@
#include <arch/io.h>
#include <reset.h>
-#include <soc/northbridge.h>
#include <soc/pci_devs.h>
+#include <soc/reset.h>
#include <device/pci_ops.h>
#include <soc/southbridge.h>
#include <amdblocks/acpimmio.h>