]> git.sur5r.net Git - u-boot/commitdiff
x86: ivybridge: Declare global data where it is used
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:03:37 +0000 (07:03 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 6 Feb 2017 03:38:46 +0000 (11:38 +0800)
Some files are missing this declaration. Add it to avoid build errors when
we actually need the declaration.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/ivybridge/bd82x6x.c
arch/x86/cpu/ivybridge/lpc.c
arch/x86/cpu/ivybridge/model_206ax.c
arch/x86/cpu/ivybridge/northbridge.c
drivers/video/ivybridge_igd.c

index e63ea6b22e3ee30aea3aadad14607184b1edc3ea..e3eff69cf67da1a57f22862206cc39419359b93c 100644 (file)
@@ -19,6 +19,8 @@
 #include <asm/arch/pch.h>
 #include <asm/arch/sandybridge.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define GPIO_BASE      0x48
 #define BIOS_CTRL      0xdc
 
index 4af89b3a7cb3287b219406caac7b9642cc2ce1f2..aef1206be41832b6a522d4780ad2d19a5f0313f3 100644 (file)
@@ -20,6 +20,8 @@
 #include <asm/pci.h>
 #include <asm/arch/pch.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define NMI_OFF                                0
 
 #define ENABLE_ACPI_MODE_IN_COREBOOT   0
index 09b534255ca0cffb1431a53fe2af3f6a26e5e28a..d5f32196ae386854b59f5b90fe7d73097ee52b4b 100644 (file)
@@ -22,6 +22,8 @@
 #include <asm/turbo.h>
 #include <asm/arch/model_206ax.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static void enable_vmx(void)
 {
        struct cpuid_result regs;
index 491f2894f9ed5ec99d9fcb190526672f4a0dd301..94f31c40beb614188ad8e6a6e7d1b33e4fa5bcb3 100644 (file)
@@ -19,6 +19,8 @@
 #include <asm/arch/model_206ax.h>
 #include <asm/arch/sandybridge.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int bridge_silicon_revision(struct udevice *dev)
 {
        struct cpuid_result result;
index 94db3dda4424e2d5c4e0c717b75174b995afa0ca..95d62a5392dd046a2c980c8e66ead4ba2d27f967 100644 (file)
@@ -18,6 +18,8 @@
 #include <asm/arch/pch.h>
 #include <asm/arch/sandybridge.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 struct gt_powermeter {
        u16 reg;
        u32 value;