summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaulik V Vaghela <maulik.v.vaghela@intel.com>2020-03-16 22:17:12 +0530
committerPatrick Georgi <pgeorgi@google.com>2020-03-25 10:45:57 +0000
commit17a478c85468049771da7d2c51831334942b4d43 (patch)
treec2f90ad554815cc7f6b53e70df0ef71f05f5aaa8
parent26dc8f2c4e7634b4298e13e4e26aab3109252d13 (diff)
downloadcoreboot-17a478c85468049771da7d2c51831334942b4d43.tar.xz
mb/intel/jasperlake_rvp: Add config check for lid switch
We should only define function to get lid switch and recovery mode switches when CHROMEEC_SWITCHES is not available. Correct this to avoid compilation issues BUG=None BRANCH=None TEST=jslrvp code compilation is fine Change-Id: I2445d40da1540c9d8c8c5fc845a4f38a5abf983e Signed-off-by: Maulik V Vaghela <maulik.v.vaghela@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39585 Reviewed-by: Ronak Kanabar <ronak.kanabar@intel.com> Reviewed-by: V Sowmya <v.sowmya@intel.com> Reviewed-by: Aamir Bohra <aamir.bohra@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/intel/jasperlake_rvp/chromeos.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/intel/jasperlake_rvp/chromeos.c b/src/mainboard/intel/jasperlake_rvp/chromeos.c
index 2f2abb5e6b..bee7eba666 100644
--- a/src/mainboard/intel/jasperlake_rvp/chromeos.c
+++ b/src/mainboard/intel/jasperlake_rvp/chromeos.c
@@ -28,6 +28,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
}
+#if !CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES)
int get_lid_switch(void)
{
/* Lid always open */
@@ -39,6 +40,8 @@ int get_recovery_mode_switch(void)
return 0;
}
+#endif /*!CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES) */
+
int get_write_protect_state(void)
{
/* No write protect */