Skip to content

Commit 669e0f3

Browse files
galakMaureenHelm
authored andcommitted
i2c: Move how we set HAS_DTS_I2C
Now that all I2C drivers utilize DTS we can select HAS_DTS_I2C in a common place and don't need to do it per driver. Signed-off-by: Kumar Gala <[email protected]>
1 parent 7e96ca5 commit 669e0f3

File tree

13 files changed

+1
-23
lines changed

13 files changed

+1
-23
lines changed

boards/arm/efm32pg_stk3402a/Kconfig.board

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ config BOARD_EFM32PG_STK3402A
99
bool "SiLabs EFM32PG-STK3402A (Pearl Gecko)"
1010
depends on SOC_SERIES_EFM32PG12B
1111
select SOC_PART_NUMBER_EFM32PG12B500F1024GL125
12-
select HAS_DTS_I2C

boards/arm/efr32mg_sltb004a/Kconfig.board

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ config BOARD_EFR32MG_SLTB004A
99
bool "SiLabs EFR32MG-SLTB004A (Thunderboard Sense 2)"
1010
depends on SOC_SERIES_EFR32MG12P
1111
select SOC_PART_NUMBER_EFR32MG12P332F1024GL125
12-
select HAS_DTS_I2C

boards/riscv/hifive1_revb/Kconfig.defconfig

-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,4 @@ config I2C_SIFIVE
2929
default y
3030
endif
3131

32-
config HAS_DTS_I2C
33-
default y
34-
3532
endif

drivers/i2c/Kconfig

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#
1212
menuconfig I2C
1313
bool "I2C Drivers"
14+
select HAS_DTS_I2C
1415
help
1516
Enable I2C Driver Configuration
1617

@@ -76,42 +77,36 @@ config I2C_GECKO
7677
config I2C_SAM_TWIHS
7778
bool "Atmel SAM (TWIHS) I2C driver"
7879
depends on SOC_FAMILY_SAM
79-
select HAS_DTS_I2C
8080
help
8181
Enable Atmel SAM MCU Family (TWIHS) I2C bus driver.
8282

8383
config I2C_SAM_TWI
8484
bool "Atmel SAM (TWI) I2C driver"
8585
depends on SOC_FAMILY_SAM
86-
select HAS_DTS_I2C
8786
help
8887
Enable Atmel SAM MCU Family (TWI) I2C bus driver.
8988

9089
config I2C_MCUX
9190
bool "MCUX I2C driver"
9291
depends on HAS_MCUX
93-
select HAS_DTS_I2C
9492
help
9593
Enable the mcux I2C driver.
9694

9795
config I2C_MCUX_LPI2C
9896
bool "MCUX LPI2C driver"
9997
depends on HAS_MCUX_LPI2C && CLOCK_CONTROL
100-
select HAS_DTS_I2C
10198
help
10299
Enable the mcux LPI2C driver.
103100

104101
config I2C_IMX
105102
bool "i.MX I2C driver"
106103
depends on HAS_IMX_I2C
107-
select HAS_DTS_I2C
108104
help
109105
Enable the i.MX I2C driver.
110106

111107
config I2C_CC32XX
112108
bool "CC32XX I2C driver"
113109
depends on SOC_SERIES_CC32XX
114-
select HAS_DTS_I2C
115110
help
116111
Enable the CC32XX I2C driver.
117112

@@ -123,7 +118,6 @@ config I2C_BITBANG
123118
config I2C_NIOS2
124119
bool "Nios-II I2C driver"
125120
depends on HAS_ALTERA_HAL
126-
select HAS_DTS_I2C
127121
help
128122
Enable the Nios-II I2C driver.
129123

@@ -136,7 +130,6 @@ config I2C_0_IRQ_PRI
136130
config I2C_RV32M1_LPI2C
137131
bool "RV32M1 LPI2C driver"
138132
depends on HAS_RV32M1_LPI2C && CLOCK_CONTROL
139-
select HAS_DTS_I2C
140133
help
141134
Enable the RV32M1 LPI2C driver.
142135

drivers/i2c/Kconfig.cc13xx_cc26xx

-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
config I2C_CC13XX_CC26XX
88
bool "TI SimpleLink CC13xx / CC26xx I2C driver"
99
depends on SOC_SERIES_CC13X2_CC26X2
10-
select HAS_DTS_I2C
1110
help
1211
Enable support for I2C on the TI SimpleLink CC13xx / CC26xx series.

drivers/i2c/Kconfig.dw

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ config HAS_I2C_DW
1111

1212
menuconfig I2C_DW
1313
bool "Design Ware I2C support"
14-
select HAS_DTS_I2C
1514
depends on HAS_I2C_DW
1615
help
1716
Enable the Design Ware I2C driver

drivers/i2c/Kconfig.esp32

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ menuconfig I2C_ESP32
1010
bool "ESP32 I2C"
1111
depends on SOC_ESP32
1212
select GPIO_ESP32
13-
select HAS_DTS_I2C
1413
help
1514
Enables the ESP32 I2C driver
1615

drivers/i2c/Kconfig.nrfx

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ menuconfig I2C_NRFX
99
bool "nRF TWI nrfx drivers"
1010
default y
1111
depends on SOC_FAMILY_NRF
12-
select HAS_DTS_I2C
1312
help
1413
Enable support for nrfx TWI drivers for nRF MCU series.
1514
Peripherals with the same instance ID cannot be used together,

drivers/i2c/Kconfig.sam0

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if SOC_FAMILY_SAM0
99
menuconfig I2C_SAM0
1010
bool "SAM0 series I2C SERCOM driver"
1111
default y
12-
select HAS_DTS_I2C
1312
help
1413
Enable the SAM0 series SERCOM I2C driver.
1514

drivers/i2c/Kconfig.sbcon

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ config I2C_SBCON
88
bool "I2C driver for ARM's SBCon two-wire serial bus interface"
99
depends on ARM
1010
select I2C_BITBANG
11-
select HAS_DTS_I2C

drivers/i2c/Kconfig.sifive

-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
config I2C_SIFIVE
88
bool "Sifive I2C driver"
99
depends on SOC_SERIES_RISCV_SIFIVE_FREEDOM
10-
depends on HAS_DTS_I2C
1110
help
1211
Enable I2C support on SiFive Freedom

drivers/i2c/Kconfig.stm32

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if I2C_STM32
1515
config I2C_STM32_V1
1616
bool
1717
depends on SOC_SERIES_STM32F1X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32L1X
18-
select HAS_DTS_I2C
1918
select USE_STM32_LL_I2C
2019
select I2C_STM32_INTERRUPT if I2C_SLAVE
2120
help
@@ -25,7 +24,6 @@ config I2C_STM32_V1
2524
config I2C_STM32_V2
2625
bool
2726
depends on SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32L0X || SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX || SOC_SERIES_STM32MP1X || SOC_SERIES_STM32G4X
28-
select HAS_DTS_I2C
2927
select USE_STM32_LL_I2C
3028
select USE_STM32_LL_RCC if SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X
3129
select I2C_STM32_INTERRUPT if I2C_SLAVE

drivers/i2c/Kconfig.xec

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
menuconfig I2C_XEC
99
bool "XEC Microchip I2C driver"
1010
depends on SOC_FAMILY_MEC
11-
select HAS_DTS_I2C
1211
help
1312
Enable the Microchip XEC I2C driver.
1413

0 commit comments

Comments
 (0)