From 17a478c85468049771da7d2c51831334942b4d43 Mon Sep 17 00:00:00 2001 From: Maulik V Vaghela Date: Mon, 16 Mar 2020 22:17:12 +0530 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/39585 Reviewed-by: Ronak Kanabar Reviewed-by: V Sowmya Reviewed-by: Aamir Bohra Tested-by: build bot (Jenkins) --- src/mainboard/intel/jasperlake_rvp/chromeos.c | 3 +++ 1 file changed, 3 insertions(+) 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 */