aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/cpu/ivybridge/early_me.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-17 16:11:58 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-01-24 12:09:42 +0800
commit98655f3a8d23d322d91ebb1897ff02a6e8a46b10 (patch)
treeba26c1eed1a948c4fc478f0622f52d4113435375 /arch/x86/cpu/ivybridge/early_me.c
parent67292e4c27de6cde4624ce03b47b2449a9ebc671 (diff)
downloadu-boot-98655f3a8d23d322d91ebb1897ff02a6e8a46b10.zip
u-boot-98655f3a8d23d322d91ebb1897ff02a6e8a46b10.tar.gz
u-boot-98655f3a8d23d322d91ebb1897ff02a6e8a46b10.tar.bz2
x86: Set up a shared syscon numbering schema
Each system controller can have a number to identify it. It can then be accessed using syscon_get_by_driver_data(). Put this in a shared header file and update the only current user. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/ivybridge/early_me.c')
-rw-r--r--arch/x86/cpu/ivybridge/early_me.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/cpu/ivybridge/early_me.c b/arch/x86/cpu/ivybridge/early_me.c
index 612c910..f0d6899 100644
--- a/arch/x86/cpu/ivybridge/early_me.c
+++ b/arch/x86/cpu/ivybridge/early_me.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <errno.h>
#include <asm/pci.h>
+#include <asm/cpu.h>
#include <asm/processor.h>
#include <asm/arch/me.h>
#include <asm/arch/pch.h>
@@ -189,7 +190,7 @@ int intel_early_me_init_done(struct udevice *dev, struct udevice *me_dev,
}
static const struct udevice_id ivybridge_syscon_ids[] = {
- { .compatible = "intel,me", },
+ { .compatible = "intel,me", .data = X86_SYSCON_ME },
{ }
};