x86: ivybridge: Declare global data where it is used
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>
This commit is contained in:
parent
e71ffd0951
commit
05af050e9f
|
@ -19,6 +19,8 @@
|
||||||
#include <asm/arch/pch.h>
|
#include <asm/arch/pch.h>
|
||||||
#include <asm/arch/sandybridge.h>
|
#include <asm/arch/sandybridge.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define GPIO_BASE 0x48
|
#define GPIO_BASE 0x48
|
||||||
#define BIOS_CTRL 0xdc
|
#define BIOS_CTRL 0xdc
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#include <asm/pci.h>
|
#include <asm/pci.h>
|
||||||
#include <asm/arch/pch.h>
|
#include <asm/arch/pch.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define NMI_OFF 0
|
#define NMI_OFF 0
|
||||||
|
|
||||||
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#include <asm/turbo.h>
|
#include <asm/turbo.h>
|
||||||
#include <asm/arch/model_206ax.h>
|
#include <asm/arch/model_206ax.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
static void enable_vmx(void)
|
static void enable_vmx(void)
|
||||||
{
|
{
|
||||||
struct cpuid_result regs;
|
struct cpuid_result regs;
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
#include <asm/arch/model_206ax.h>
|
#include <asm/arch/model_206ax.h>
|
||||||
#include <asm/arch/sandybridge.h>
|
#include <asm/arch/sandybridge.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int bridge_silicon_revision(struct udevice *dev)
|
int bridge_silicon_revision(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct cpuid_result result;
|
struct cpuid_result result;
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
#include <asm/arch/pch.h>
|
#include <asm/arch/pch.h>
|
||||||
#include <asm/arch/sandybridge.h>
|
#include <asm/arch/sandybridge.h>
|
||||||
|
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
struct gt_powermeter {
|
struct gt_powermeter {
|
||||||
u16 reg;
|
u16 reg;
|
||||||
u32 value;
|
u32 value;
|
||||||
|
|
Loading…
Reference in New Issue