blob: 1173d093eda5149fa63c3d9eec674189d17500be [file] [log] [blame]
# Kconfig - I2C configuration options
#
# Copyright (c) 2015 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
#
# I2C options
#
menuconfig I2C
bool "I2C Drivers"
default n
help
Enable I2C Driver Configuration
if I2C
config I2C_INIT_PRIORITY
int "Init priority"
default 60
help
I2C device driver initialization priority.
config SYS_LOG_I2C_LEVEL
int "I2C log level"
depends on SYS_LOG
default 0
help
Sets log level for I2C drivers.
Levels are:
- 0 OFF, do not write
- 1 ERROR, only write SYS_LOG_ERR
- 2 WARNING, write SYS_LOG_WRN in addition to previous level
- 3 INFO, write SYS_LOG_INF in addition to previous levels
- 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
config I2C_0
bool "Enable I2C Port 0"
default n
config I2C_0_NAME
string "Port 0 device name"
depends on I2C_0 && !HAS_DTS_I2C
default "I2C_0"
config I2C_0_DEFAULT_CFG
hex "Port 0 default configuration"
depends on I2C_0 && !HAS_DTS_I2C
default 0x0
help
Allows the I2C port to be brought up with a default configuration.
This is useful to set if other drivers depend upon using the I2C bus
before the application has a chance to custom configure the port.
Setting this value does not prohibit the application from customizing
the values later. Refer to include/i2c.h file for proper values.
config I2C_0_IRQ_PRI
int "Port 0 interrupt priority"
depends on I2C_0 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_1
bool "Enable I2C Port 1"
default n
config I2C_1_NAME
string "Port 1 device name"
default "I2C_1"
depends on I2C_1 && !HAS_DTS_I2C
config I2C_1_DEFAULT_CFG
hex "Port 1 default configuration"
depends on I2C_1 && !HAS_DTS_I2C
default 0x0
help
Allows the I2C port to be brought up with a default configuration.
This is useful to set if other drivers depend upon using the I2C bus
before the application has a chance to custom configure the port.
Setting this value does not prohibit the application from customizing
the values later. Refer to include/i2c.h file for proper values.
config I2C_1_IRQ_PRI
int "Port 1 interrupt priority"
depends on I2C_1 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_2
bool "Enable I2C Port 2"
default n
config I2C_2_NAME
string "Port 2 device name"
default "I2C_2"
depends on I2C_2 && !HAS_DTS_I2C
config I2C_2_DEFAULT_CFG
hex "Port 2 default configuration"
depends on I2C_2 && !HAS_DTS_I2C
default 0x0
help
Allows the I2C port to be brought up with a default configuration.
This is useful to set if other drivers depend upon using the I2C bus
before the application has a chance to custom configure the port.
Setting this value does not prohibit the application from customizing
the values later. Refer to include/i2c.h file for proper values.
config I2C_2_IRQ_PRI
int "Port 2 interrupt priority"
depends on I2C_2 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_3
bool "Enable I2C Port 3"
default n
config I2C_3_NAME
string "Port 3 device name"
depends on I2C_3 && !HAS_DTS_I2C
default "I2C_3"
config I2C_3_DEFAULT_CFG
hex "Port 3 default configuration"
depends on I2C_3 && !HAS_DTS_I2C
default 0x0
help
Allows the I2C port to be brought up with a default configuration.
This is useful to set if other drivers depend upon using the I2C bus
before the application has a chance to custom configure the port.
Setting this value does not prohibit the application from customizing
the values later. Refer to include/i2c.h file for proper values.
config I2C_3_IRQ_PRI
int "Port 3 interrupt priority"
depends on I2C_3 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_ATMEL_SAM3
bool "[deprecated] Atmel SAM3X I2C Driver"
depends on SOC_SERIES_SAM3X
default n
help
This driver is deprecated and will be removed. Use
"Atmel SAM (TWI) I2C driver" instead.
Enable I2C support on the Atmel SAM3 family processor.
Says y to enable additional options to enable support
for individual controllers.
config I2C_SAM_TWIHS
bool "Atmel SAM (TWIHS) I2C driver"
depends on SOC_FAMILY_SAM
select HAS_DTS_I2C
default n
help
Enable Atmel SAM MCU Family (TWIHS) I2C bus driver.
config I2C_SAM_TWI
bool "Atmel SAM (TWI) I2C driver"
depends on SOC_FAMILY_SAM
select HAS_DTS_I2C
default n
help
Enable Atmel SAM MCU Family (TWI) I2C bus driver.
config I2C_MCUX
bool "MCUX I2C driver"
depends on HAS_MCUX
select HAS_DTS_I2C
default n
help
Enable the mcux I2C driver.
config I2C_CC32XX
bool "CC32XX I2C driver"
depends on SOC_SERIES_CC32XX
select HAS_DTS_I2C
default n
help
Enable the CC32XX I2C driver.
config I2C_BITBANG
bool
default n
help
Enable library used for software driven (bit banging) I2C support
config I2C_NIOS2
bool "Nios-II I2C driver"
depends on HAS_ALTERA_HAL
default n
help
Enable the Nios-II I2C driver.
source "drivers/i2c/Kconfig.dw"
source "drivers/i2c/Kconfig.esp32"
source "drivers/i2c/Kconfig.gpio"
source "drivers/i2c/Kconfig.nrf5"
source "drivers/i2c/Kconfig.qmsi"
source "drivers/i2c/Kconfig.sbcon"
source "drivers/i2c/Kconfig.stm32"
endif # I2C