1# Copyright 2021 The Chromium OS Authors
2#
3# SPDX-License-Identifier: Apache-2.0
4
5config INA23X
6	bool "INA23X Current and Power Monitor"
7	default y
8	depends on DT_HAS_TI_INA230_ENABLED || DT_HAS_TI_INA237_ENABLED
9	select I2C
10	help
11	  Enable driver for INA23X Current and Power Monitor.
12
13if INA23X
14
15config INA230
16	bool "INA230"
17	default y
18	depends on DT_HAS_TI_INA230_ENABLED
19	help
20	  Enable driver for INA230/INA231.
21
22config INA237
23	bool "INA237"
24	default y
25	depends on DT_HAS_TI_INA237_ENABLED
26	help
27	  Enable driver for INA237.
28
29config INA237_VSHUNT
30	bool "INA237 VShunt Measurement Enable"
31	depends on DT_HAS_TI_INA237_ENABLED
32	help
33	  Enable shunt voltage measurement for INA237.
34
35	  This is the actual shunt voltage measured which is scaled within the
36	  INA237 based upon the SHUNT_CAL register.  This value is useful for
37	  looking at measurement noise or debugging the SHUNT_CAL value.
38
39	  Note that enabling this option requires an extra I2C read when
40	  SENSOR_CHAN_ALL is selected, so only enable if the shunt voltage
41	  measurement is required.
42
43config INA230_TRIGGER
44	bool "INA230 trigger mode"
45	depends on INA230
46	help
47	  Set to enable trigger mode using gpio interrupt, where
48	  interrupts are configured to line ALERT PIN.
49
50endif # INA23X
51