2018-02-28 11:27:46 +01:00
|
|
|
# Copyright (c) 2018 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig I2C_DW
|
|
|
|
bool "Design Ware I2C support"
|
2022-07-20 15:44:42 -05:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_SNPS_DESIGNWARE_I2C_ENABLED
|
2024-12-25 02:22:04 +09:00
|
|
|
select PINCTRL if $(dt_compat_any_has_prop,$(DT_COMPAT_SNPS_DESIGNWARE_I2C),pinctrl-0)
|
2018-02-28 11:27:46 +01:00
|
|
|
help
|
2018-10-19 14:05:26 +02:00
|
|
|
Enable the Design Ware I2C driver
|
2018-02-28 11:27:46 +01:00
|
|
|
|
|
|
|
config I2C_DW_CLOCK_SPEED
|
|
|
|
int "Set the clock speed for I2C"
|
2021-04-21 00:04:35 +03:00
|
|
|
depends on I2C_DW
|
2025-04-24 11:58:21 +08:00
|
|
|
default 110 if I2C_RTS5912
|
2018-02-28 11:27:46 +01:00
|
|
|
default 32
|
2023-08-08 10:45:49 +05:30
|
|
|
|
|
|
|
config I2C_DW_LPSS_DMA
|
|
|
|
bool "Use I2C integrated DMA for asynchronous transfer"
|
2025-04-24 11:58:21 +08:00
|
|
|
depends on (I2C_DW && !I2C_RTS5912)
|
2023-08-08 10:45:49 +05:30
|
|
|
select DMA
|
|
|
|
select DMA_INTEL_LPSS
|
|
|
|
help
|
2024-01-13 00:55:44 +07:00
|
|
|
This option enables I2C DMA feature to be used for asynchronous
|
|
|
|
data transfers. All Tx operations are done using dma channel 0 and
|
2023-08-08 10:45:49 +05:30
|
|
|
all Rx operations are done using dma channel 1.
|
2024-06-30 22:27:19 -07:00
|
|
|
|
|
|
|
config I2C_DW_RW_TIMEOUT_MS
|
|
|
|
int "Set the Read/Write timeout in milliseconds"
|
|
|
|
depends on I2C_DW
|
|
|
|
default 100
|
2025-04-24 11:58:21 +08:00
|
|
|
|
|
|
|
config I2C_DW_EXTENDED_SUPPORT
|
|
|
|
bool "Extended DW features"
|
|
|
|
help
|
|
|
|
This option enables support for the SCL/SDA timeout registers and some
|
|
|
|
additional features of the DW I2C controller.
|