summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChing-Kang Yen <chingkang@chromium.org>2020-04-16 23:57:17 +0800
committerChing-Kang Yen <chingkang@chromium.org>2020-04-23 13:43:16 +0000
commit557dafbacbc61cd4c5dec9f27ead4ea17b67aac6 (patch)
tree1b4e36d70a7c426371dc173a58f751012cd3977d /include
parent86be30f5c4220112c6303c176f12096151285515 (diff)
downloadchrome-ec-557dafbacbc61cd4c5dec9f27ead4ea17b67aac6.tar.gz
driver: Replace BMI160 to BMI in board config
Replace some macro of BMI160 to BMI version for common function of BMI series. Make board config include the accelgyro_bmi_common.h instead of accel_gyro_bmi160.h. BRANCH=None BUG=b:146144827 TEST=make buildall -j Change-Id: I043ff8a92f15295ead3fa5c1e292319e2b4fa21a Signed-off-by: Ching-Kang Yen <chingkang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2156525 Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/config.h b/include/config.h
index 2665ae5e01..1ac15ed5fb 100644
--- a/include/config.h
+++ b/include/config.h
@@ -134,14 +134,12 @@
#undef CONFIG_MAG_BMM150
/* Presence of a Bosh Sensortec BMM150 magnetometer behind a BMIxxx. */
-#undef CONFIG_MAG_BMI160_BMM150
#undef CONFIG_MAG_BMI_BMM150
/* Presence of a Bosh Sensortec BMM150 magnetometer behind a LSM6DSM. */
#undef CONFIG_MAG_LSM6DSM_BMM150
/* Presence of a ST LIS2MDL magnetometer behind a BMIxxx. */
-#undef CONFIG_MAG_BMI160_LIS2MDL
#undef CONFIG_MAG_BMI_LIS2MDL
/* Presence of a ST LIS2MDL magnetometer behind a LSM6DSM. */
@@ -4544,18 +4542,6 @@
#include "board.h"
/*
- * Define BMI macro when BMI160 is defined
- * TODO(chingkang): replace all BMI160 macro by BMI.
- */
-#ifdef CONFIG_MAG_BMI160_BMM150
-#define CONFIG_MAG_BMI_BMM150
-#endif
-
-#ifdef CONFIG_MAG_BMI160_LIS2MDL
-#define CONFIG_MAG_BMI_LIS2MDL
-#endif
-
-/*
* Define CONFIG_HOST_ESPI_VW_POWER_SIGNAL if any power signals from the host
* are configured as virtual wires.
*/