summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.accelgyro_bmi
blob: bb8239f6d8704e3239dcbe36eb0a811625b7b172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


if PLATFORM_EC_ACCELGYRO_BMI
menu "BMI Sensor Common"

choice PLATFORM_EC_ACCELGYRO_BMI_COMM
	prompt "Accelgyro BMI's communication mode"
	help
	  When using the BMI drivers, there's the option to communicate with the
	  chip via several methods. This choice helps improve code size by only
	  compiling the needed communication channels.

config PLATFORM_EC_ACCELGYRO_BMI_COMM_SPI
	bool "Use SPI communication"
	help
	  The BMI chip is using SPI communication. This config value is used to
	  save on code size as only the SPI communication code will be included
	  for the BMI chip.

config PLATFORM_EC_ACCELGYRO_BMI_COMM_I2C
	bool "Use I2C communication"
	help
	  The BMI chip is using I2C communication. This config value is used to
	  save on code size as only the I2C communication code will be included
	  for the BMI chip.

endchoice

endmenu # BMI Sensor
endif # PLATFORM_EC_ACCELGYRO_BMI