summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/intel/bd82x6x/early_me.c13
-rw-r--r--src/southbridge/intel/bd82x6x/early_me_mrc.c13
2 files changed, 20 insertions, 6 deletions
diff --git a/src/southbridge/intel/bd82x6x/early_me.c b/src/southbridge/intel/bd82x6x/early_me.c
index 47b8708ba7..bda139b1fe 100644
--- a/src/southbridge/intel/bd82x6x/early_me.c
+++ b/src/southbridge/intel/bd82x6x/early_me.c
@@ -18,6 +18,7 @@
#include <console/console.h>
#include <delay.h>
#include <device/pci_ids.h>
+#include <device/pci_def.h>
#include <halt.h>
#include <string.h>
#include <timestamp.h>
@@ -45,11 +46,17 @@ void intel_early_me_status(void)
{
struct me_hfs hfs;
struct me_gmes gmes;
+ u32 id = pci_read_config32(PCH_ME_DEV, PCI_VENDOR_ID);
- pci_read_dword_ptr(&hfs, PCI_ME_HFS);
- pci_read_dword_ptr(&gmes, PCI_ME_GMES);
+ if ((id == 0xffffffff) || (id == 0x00000000) ||
+ (id == 0x0000ffff) || (id == 0xffff0000)) {
+ printk(BIOS_DEBUG, "Missing Intel ME PCI device.\n");
+ } else {
+ pci_read_dword_ptr(&hfs, PCI_ME_HFS);
+ pci_read_dword_ptr(&gmes, PCI_ME_GMES);
- intel_me_status(&hfs, &gmes);
+ intel_me_status(&hfs, &gmes);
+ }
}
int intel_early_me_init(void)
diff --git a/src/southbridge/intel/bd82x6x/early_me_mrc.c b/src/southbridge/intel/bd82x6x/early_me_mrc.c
index 8faab62c04..a6562c77a7 100644
--- a/src/southbridge/intel/bd82x6x/early_me_mrc.c
+++ b/src/southbridge/intel/bd82x6x/early_me_mrc.c
@@ -18,6 +18,7 @@
#include <console/console.h>
#include <delay.h>
#include <device/pci_ids.h>
+#include <device/pci_def.h>
#include <halt.h>
#include <string.h>
#include "me.h"
@@ -51,11 +52,17 @@ void intel_early_me_status(void)
{
struct me_hfs hfs;
struct me_gmes gmes;
+ u32 id = pci_read_config32(PCH_ME_DEV, PCI_VENDOR_ID);
- pci_read_dword_ptr(&hfs, PCI_ME_HFS);
- pci_read_dword_ptr(&gmes, PCI_ME_GMES);
+ if ((id == 0xffffffff) || (id == 0x00000000) ||
+ (id == 0x0000ffff) || (id == 0xffff0000)) {
+ printk(BIOS_DEBUG, "Missing Intel ME PCI device.\n");
+ } else {
+ pci_read_dword_ptr(&hfs, PCI_ME_HFS);
+ pci_read_dword_ptr(&gmes, PCI_ME_GMES);
- intel_me_status(&hfs, &gmes);
+ intel_me_status(&hfs, &gmes);
+ }
}
int intel_early_me_init(void)