[coreboot-gerrit] Patch set updated for coreboot: intel/apollolake_rvp: Provide stubs needed for CHROMEOS builds

Alexandru Gagniuc (mr.nuke.me@gmail.com) gerrit at coreboot.org
Wed Jan 27 00:13:31 CET 2016


Alexandru Gagniuc (mr.nuke.me at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13401

-gerrit

commit 36a9b64405e35a06df753dbb4ac174ca9c178782
Author: Zhao, Lijian <lijian.zhao at intel.com>
Date:   Thu Jan 7 16:22:55 2016 -0800

    intel/apollolake_rvp: Provide stubs needed for CHROMEOS builds
    
    Add mecessary stubs for required for CONFIG_CHROMEOS. Without those,
    the coreboot build will break.
    Note that MAINBOARD_HAS_CHROMEOS is not enabled at this time due to
    missing dependencies in the soc/.
    
    Change-Id: Ie4a1ce812e8fc8dc974fc55a7180a5ea433f146e
    Signed-off-by: Zhao, Lijian <lijian.zhao at intel.com>
    Signed-off-by: Alexandru Gagniuc <alexandrux.gagniuc at intel.com>
---
 src/mainboard/intel/apollolake_rvp/Makefile.inc |  4 +++
 src/mainboard/intel/apollolake_rvp/chromeos.c   | 35 +++++++++++++++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/src/mainboard/intel/apollolake_rvp/Makefile.inc b/src/mainboard/intel/apollolake_rvp/Makefile.inc
index f3c87b2..52de59b 100755
--- a/src/mainboard/intel/apollolake_rvp/Makefile.inc
+++ b/src/mainboard/intel/apollolake_rvp/Makefile.inc
@@ -1 +1,5 @@
+
+romstage-$(CONFIG_CHROMEOS) += chromeos.c
+ramstage-$(CONFIG_CHROMEOS) += chromeos.c
+
 ramstage-y += mainboard.c
diff --git a/src/mainboard/intel/apollolake_rvp/chromeos.c b/src/mainboard/intel/apollolake_rvp/chromeos.c
new file mode 100644
index 0000000..bef4210
--- /dev/null
+++ b/src/mainboard/intel/apollolake_rvp/chromeos.c
@@ -0,0 +1,35 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2015 Intel Corp.
+ * (Written by Lance Zhao <lijian.zhao at intel.com> for Intel Corp.)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#include <vendorcode/google/chromeos/chromeos.h>
+
+int get_lid_switch(void)
+{
+	/* Default to force open */
+	return 1;
+}
+
+/* The dev-switch is virtual */
+int get_developer_mode_switch(void)
+{
+	return 0;
+}
+
+int get_recovery_mode_switch(void)
+{
+	return 0;
+}
+
+int get_write_protect_state(void)
+{
+	return 0;
+}



More information about the coreboot-gerrit mailing list