i2c: Remove non DTS Kconfig params

All drivers utilize DTS now so we can remove the Kconfig params related
to !HAS_DTS_I2C.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-10-22 08:21:41 -05:00 committed by Maureen Helm
parent 9599c2d510
commit 7e96ca5d80
2 changed files with 6 additions and 181 deletions

View File

@ -35,8 +35,3 @@ CONFIG_I2C_0=y
CONFIG_I2C_1=y
CONFIG_I2C_2=n
CONFIG_I2C_3=n
# IRQ priorities are fixed on Xtensa, but Kconfig will ask for these
# if not set.
CONFIG_I2C_0_IRQ_PRI=1
CONFIG_I2C_1_IRQ_PRI=1

View File

@ -45,203 +45,27 @@ source "subsys/logging/Kconfig.template.log_config"
config I2C_0
bool "Enable I2C Port 0"
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"
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"
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"
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_4
bool "Enable I2C Port 4"
config I2C_4_NAME
string "Port 4 device name"
depends on I2C_4 && !HAS_DTS_I2C
default "I2C_4"
config I2C_4_DEFAULT_CFG
hex "Port 4 default configuration"
depends on I2C_4 && !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_4_IRQ_PRI
int "Port 4 interrupt priority"
depends on I2C_4 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_5
bool "Enable I2C Port 5"
config I2C_5_NAME
string "Port 5 device name"
depends on I2C_5 && !HAS_DTS_I2C
default "I2C_5"
config I2C_5_DEFAULT_CFG
hex "Port 5 default configuration"
depends on I2C_5 && !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_5_IRQ_PRI
int "Port 5 interrupt priority"
depends on I2C_5 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_6
bool "Enable I2C Port 6"
config I2C_6_NAME
string "Port 6 device name"
depends on I2C_6 && !HAS_DTS_I2C
default "I2C_6"
config I2C_6_DEFAULT_CFG
hex "Port 6 default configuration"
depends on I2C_6 && !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_6_IRQ_PRI
int "Port 6 interrupt priority"
depends on I2C_6 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_7
bool "Enable I2C Port 7"
config I2C_7_NAME
string "Port 7 device name"
depends on I2C_7 && !HAS_DTS_I2C
default "I2C_7"
config I2C_7_DEFAULT_CFG
hex "Port 7 default configuration"
depends on I2C_7 && !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_7_IRQ_PRI
int "Port 7 interrupt priority"
depends on I2C_7 && !HAS_DTS_I2C
help
IRQ priority.
config I2C_GECKO
bool "Gecko I2C driver"
depends on HAS_SILABS_GECKO
@ -303,6 +127,12 @@ config I2C_NIOS2
help
Enable the Nios-II I2C driver.
config I2C_0_IRQ_PRI
int "Port 0 interrupt priority"
depends on I2C_NIOS2
help
IRQ priority.
config I2C_RV32M1_LPI2C
bool "RV32M1 LPI2C driver"
depends on HAS_RV32M1_LPI2C && CLOCK_CONTROL