1# I2C configuration options
2
3# Copyright (c) 2024, NXP
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig I2C_MCUX_FLEXCOMM
7	bool "MCUX FLEXCOMM I2C driver"
8	default y
9	depends on DT_HAS_NXP_LPC_I2C_ENABLED
10	select PINCTRL
11	select RESET
12	help
13	  Enable the mcux flexcomm i2c driver.
14
15config I2C_MCUX_FLEXCOMM_BUS_RECOVERY
16	bool "Bus recovery support"
17	depends on I2C_MCUX_FLEXCOMM && PINCTRL
18	select I2C_BITBANG
19	help
20	  Enable flexcomm i2c driver bus recovery support via GPIO bitbanging.
21
22config I2C_NXP_TRANSFER_TIMEOUT
23	int "Transfer timeout [ms]"
24	default 0
25	depends on I2C_MCUX_FLEXCOMM
26	help
27	  Timeout in milliseconds used for each I2C transfer.
28	  0 means that the driver should use the K_FOREVER value,
29	  i.e. it should wait as long as necessary.
30	  In conjunction with this, FSL_FEATURE_I2C_TIMEOUT_RECOVERY
31	  must be enabled to allow the driver to fully recover.
32