summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2013-08-18 18:08:40 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2013-12-04 20:11:12 +0100
commitb67d99c01a9f57b338cd73b94c3a7c069d15e2e8 (patch)
treed427907463f5b9a0e15ec731960b4eb3d5583909 /src
parent48a749a89844ba76ff1564d5009e81d4d8e06db8 (diff)
lumpy: Fix build without ChromeOS
Change-Id: I1a59405499deceed7df01a03834be72830e6578f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4291 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/samsung/lumpy/acpi_tables.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/samsung/lumpy/acpi_tables.c b/src/mainboard/samsung/lumpy/acpi_tables.c
index 13e9e0fb43..4aeccbc1c7 100644
--- a/src/mainboard/samsung/lumpy/acpi_tables.c
+++ b/src/mainboard/samsung/lumpy/acpi_tables.c
@@ -30,7 +30,9 @@
#include <device/pci_ids.h>
#include <cpu/x86/msr.h>
#include <ec/acpi/ec.h>
+#if CONFIG_CHROMEOS
#include <vendorcode/google/chromeos/gnvs.h>
+#endif
extern const unsigned char AmlCode[];
#if CONFIG_HAVE_ACPI_SLIC
@@ -98,9 +100,10 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
gnvs->did[3] = 0x80000410;
gnvs->did[4] = 0x00000005;
+#if CONFIG_CHROMEOS
// TODO(reinauer) this could move elsewhere?
chromeos_init_vboot(&(gnvs->chromeos));
-
+#endif
acpi_update_thermal_table(gnvs);
gnvs->chromeos.vbt2 = ec_read(0xcb) ? ACTIVE_ECFW_RW : ACTIVE_ECFW_RO;