@@ -14,64 +14,63 @@ menuconfig I2C
1414 prompt "I2C Drivers"
1515 default n
1616 help
17- Enable I2C Driver Configuration
17+ Enable I2C Driver Configuration
1818
1919if I2C
2020
2121config I2C_DW
2222 bool "Design Ware I2C support"
23- depends on I2C
2423 default n
2524 help
26- Enable Design Ware I2C support on the selected board
25+ Enable Design Ware I2C support on the selected board
2726
2827config I2C_QMSI_SS
2928 bool "QMSI I2C driver for the Sensor Subsystem"
30- depends on I2C && QMSI
29+ depends on QMSI
3130 default n
3231 help
33- This option enable the Sensor QMSI I2C driver.
32+ This option enable the Sensor QMSI I2C driver.
3433
35- This driver is simply a shim driver based on the I2C driver
36- provided by the QMSI BSP.
34+ This driver is simply a shim driver based on the I2C driver
35+ provided by the QMSI BSP.
3736
3837config I2C_QMSI
3938 bool "QMSI I2C driver"
40- depends on I2C && QMSI
39+ depends on QMSI
4140 default n
4241 help
43- This option enable the QMSI I2C driver.
42+ This option enable the QMSI I2C driver.
4443
45- This driver is simply a shim driver based on the I2C driver
46- provided by the QMSI BSP.
44+ This driver is simply a shim driver based on the I2C driver
45+ provided by the QMSI BSP.
4746
4847config I2C_ATMEL_SAM3
4948 bool "Atmel SAM3 I2C Driver"
50- depends on I2C && SOC_ATMEL_SAM3
49+ depends on SOC_ATMEL_SAM3
5150 default n
5251 help
53- Enable I2C support on the Atmel SAM3 family processor.
52+ Enable I2C support on the Atmel SAM3 family processor.
5453
55- Says y to enable additional options to enable support
56- for individual controllers.
54+ Says y to enable additional options to enable support
55+ for individual controllers.
5756
5857config TWIHS_SAM
5958 bool "Atmel SAM I2C driver"
60- depends on I2C && SOC_FAMILY_SAM
59+ depends on SOC_FAMILY_SAM
6160 default n
6261 help
6362 Enable Atmel SAM MCU Family I2C bus driver.
6463
6564config I2C_MCUX
6665 bool "MCUX I2C driver"
67- depends on I2C && HAS_MCUX
66+ depends on HAS_MCUX
6867 default n
6968 help
70- Enable the mcux I2C driver.
69+ Enable the mcux I2C driver.
7170
7271config I2C_NRF5
7372 bool "NRF5 I2C driver"
74- depends on I2C && SOC_FAMILY_NRF5
73+ depends on SOC_FAMILY_NRF5
7574 select GPIO
7675 default n
7776 help
@@ -94,17 +93,17 @@ config I2C_NRF5_GPIO_SCL_PIN
9493
9594config I2C_STM32LX
9695 bool "STM32Lx MCU I2C Driver"
97- depends on I2C && SOC_FAMILY_STM32 && SOC_SERIES_STM32L4X
96+ depends on SOC_FAMILY_STM32 && SOC_SERIES_STM32L4X
9897 default n
9998 help
100- Enable I2C support on the STM32Lxx family of processors.
99+ Enable I2C support on the STM32Lxx family of processors.
101100
102101config I2C_STM32LX_INTERRUPT
103102 bool "STM32Lx MCU I2C Interrupt Support"
104103 depends on I2C_STM32LX
105104 default n
106105 help
107- Enable Interrupt support for the I2C Driver of STM32Lxx family.
106+ Enable Interrupt support for the I2C Driver of STM32Lxx family.
108107
109108config I2C_BITBANG
110109 bool
@@ -116,41 +115,34 @@ source "drivers/i2c/Kconfig.gpio"
116115
117116config I2C_INIT_PRIORITY
118117 int
119- depends on I2C
120118 default 60
121119 prompt "Init priority"
122120 help
123- I2C device driver initialization priority.
121+ I2C device driver initialization priority.
124122
125123config I2C_DW_CLOCK_SPEED
126124 int "Set the clock speed for I2C"
127125 default 32
128- depends on I2C && I2C_DW
126+ depends on I2C_DW
129127
130128config SYS_LOG_I2C_LEVEL
131129 int
132130 prompt "I2C log level"
133- depends on I2C && SYS_LOG
131+ depends on SYS_LOG
134132 default 0
135133 help
136- Sets log level for I2C connections
137-
138- Levels are:
139-
140- - 0 OFF, do not write
141-
142- - 1 ERROR, only write SYS_LOG_ERR
143-
144- - 2 WARNING, write SYS_LOG_WRN in addition to previous level
145-
146- - 3 INFO, write SYS_LOG_INF in addition to previous levels
147-
148- - 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
134+ Sets log level for I2C drivers.
135+ Levels are:
136+ - 0 OFF, do not write
137+ - 1 ERROR, only write SYS_LOG_ERR
138+ - 2 WARNING, write SYS_LOG_WRN in addition to previous level
139+ - 3 INFO, write SYS_LOG_INF in addition to previous levels
140+ - 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
149141
150142config I2C_DW_SHARED_IRQ
151143 bool
152144 default n
153- depends on I2C && I2C_DW
145+ depends on I2C_DW
154146
155147choice
156148 prompt "I2C_0 Interrupts via"
@@ -160,107 +152,104 @@ choice
160152config I2C_DW_0_IRQ_DIRECT
161153 bool "Direct Hardware Interrupt"
162154 help
163- When interrupts fire, the driver's ISR function is being called
164- directly.
155+ When interrupts fire, the driver's ISR function is being called
156+ directly.
165157
166158config I2C_DW_0_IRQ_SHARED
167159 bool "Shared IRQ"
168160 depends on SHARED_IRQ
169161 select I2C_DW_SHARED_IRQ
170162 help
171- When interrupts fire, the shared IRQ driver is notified.
172- Then the shared IRQ driver dispatches the interrupt to other drivers.
163+ When interrupts fire, the shared IRQ driver is notified.
164+ Then the shared IRQ driver dispatches the interrupt to other drivers.
173165
174166endchoice
175167
176168config I2C_DW_0_IRQ_SHARED_NAME
177169 string "Device name for Shared IRQ"
178170 depends on I2C_0 && I2C_DW_0_IRQ_SHARED
179171 help
180- Specify the device name for the shared IRQ driver. It is used
181- to register this driver with the shared IRQ driver, so interrupts
182- can be dispatched correctly.
172+ Specify the device name for the shared IRQ driver. It is used
173+ to register this driver with the shared IRQ driver, so interrupts
174+ can be dispatched correctly.
183175
184176config I2C_0
185- bool "Enable I2C_0"
186- depends on I2C
177+ bool "Enable I2C Port 0"
187178 default n
188179
189180config I2C_0_NAME
190- string "Select a name for finding the device"
181+ string "Port 0 device name "
191182 depends on I2C_0
192183 default "I2C_0"
193184
194185config I2C_0_DEFAULT_CFG
195- hex "I2C default configuration"
186+ hex "Port 0 default configuration"
196187 depends on I2C_0
197188 default 0x0
198189 help
199- Allows the I2C port to be brought up with a default configuration.
200- This is useful to set if other drivers depend upon using the I2C bus
201- before the application has a chance to custom configure the port.
202- Setting this value does not prohibit the application from customizing
203- the values later. Refer to the I2C datasheet for proper values.
190+ Allows the I2C port to be brought up with a default configuration.
191+ This is useful to set if other drivers depend upon using the I2C bus
192+ before the application has a chance to custom configure the port.
193+ Setting this value does not prohibit the application from customizing
194+ the values later. Refer to include/i2c.h file for proper values.
204195
205196config I2C_0_IRQ_PRI
206- int "Controller interrupt priority"
197+ int "Port 0 interrupt priority"
207198 depends on I2C_0
208199 help
209- IRQ priority.
200+ IRQ priority.
210201
211202config I2C_1
212203 bool "Enable I2C Port 1"
213- depends on I2C
214204 default n
215205
216206config I2C_1_NAME
217- string "Select a name for finding the device"
207+ string "Port 1 device name "
218208 default "I2C_1"
219209 depends on I2C_1
220210
221211config I2C_1_DEFAULT_CFG
222- hex "I2C default configuration"
212+ hex "Port 1 default configuration"
223213 depends on I2C_1
224214 default 0x0
225215 help
226- Allows the I2C port to be brought up with a default configuration.
227- This is useful to set if other drivers depend upon using the I2C bus
228- before the application has a chance to custom configure the port.
229- Setting this value does not prohibit the application from customizing
230- the values later. Refer to the I2C datasheet for proper values.
216+ Allows the I2C port to be brought up with a default configuration.
217+ This is useful to set if other drivers depend upon using the I2C bus
218+ before the application has a chance to custom configure the port.
219+ Setting this value does not prohibit the application from customizing
220+ the values later. Refer to include/i2c.h file for proper values.
231221
232222config I2C_1_IRQ_PRI
233- int "Controller interrupt priority"
223+ int "Port 1 interrupt priority"
234224 depends on I2C_1
235225 help
236- IRQ priority.
226+ IRQ priority.
237227
238228config I2C_2
239229 bool "Enable I2C Port 2"
240- depends on I2C
241230 default n
242231
243232config I2C_2_NAME
244- string "Select a name for finding the device"
233+ string "Port 2 device name "
245234 default "I2C_2"
246235 depends on I2C_2
247236
248237config I2C_2_DEFAULT_CFG
249- hex "I2C default configuration"
238+ hex "Port 2 default configuration"
250239 depends on I2C_2
251240 default 0x0
252241 help
253- Allows the I2C port to be brought up with a default configuration.
254- This is useful to set if other drivers depend upon using the I2C bus
255- before the application has a chance to custom configure the port.
256- Setting this value does not prohibit the application from customizing
257- the values later. Refer to the I2C datasheet for proper values.
242+ Allows the I2C port to be brought up with a default configuration.
243+ This is useful to set if other drivers depend upon using the I2C bus
244+ before the application has a chance to custom configure the port.
245+ Setting this value does not prohibit the application from customizing
246+ the values later. Refer to include/i2c.h file for proper values.
258247
259248config I2C_2_IRQ_PRI
260- int "Controller interrupt priority"
249+ int "Port 2 interrupt priority"
261250 depends on I2C_2
262251 help
263- IRQ priority.
252+ IRQ priority.
264253
265254config I2C_SS_0
266255 bool "Enable I2C_SS_0"
@@ -277,11 +266,11 @@ config I2C_SS_0_DEFAULT_CFG
277266 depends on I2C_SS_0
278267 default 0x0
279268 help
280- Allows the I2C port to be brought up with a default configuration.
281- This is useful to set if other drivers depend upon using the I2C bus
282- before the application has a chance to custom configure the port.
283- Setting this value does not prohibit the application from customizing
284- the values later. Refer to the I2C datasheet for proper values.
269+ Allows the I2C port to be brought up with a default configuration.
270+ This is useful to set if other drivers depend upon using the I2C bus
271+ before the application has a chance to custom configure the port.
272+ Setting this value does not prohibit the application from customizing
273+ the values later. Refer to the I2C datasheet for proper values.
285274
286275config I2C_SS_1
287276 bool "Enable I2C SS Port 1"
@@ -298,47 +287,45 @@ config I2C_SS_1_DEFAULT_CFG
298287 depends on I2C_SS_1
299288 default 0x0
300289 help
301- Allows the I2C port to be brought up with a default configuration.
302- This is useful to set if other drivers depend upon using the I2C bus
303- before the application has a chance to custom configure the port.
304- Setting this value does not prohibit the application from customizing
305- the values later. Refer to the I2C datasheet for proper values.
290+ Allows the I2C port to be brought up with a default configuration.
291+ This is useful to set if other drivers depend upon using the I2C bus
292+ before the application has a chance to custom configure the port.
293+ Setting this value does not prohibit the application from customizing
294+ the values later. Refer to the I2C datasheet for proper values.
306295
307296config I2C_SS_SDA_HOLD
308297 int
309298 depends on I2C_QMSI_SS
310299 help
311- The hold time on the data signal after a negative edge of i2c clock.
312- The unit is i2c module base clock.
300+ The hold time on the data signal after a negative edge of i2c clock.
301+ The unit is i2c module base clock.
313302
314303config I2C_SS_SDA_SETUP
315304 int
316305 depends on I2C_QMSI_SS
317306 help
318- The delay time of clock rising edge relative to i2c data signal change.
319- The unit is i2c module base clock.
307+ The delay time of clock rising edge relative to i2c data signal
308+ change. The unit is i2c module base clock.
320309
321310config I2C_SDA_SETUP
322311 int
323312 depends on I2C_QMSI
324313 help
325- The delay time of clock rising edge relative to i2c data signal change.
326- The unit is i2c module base clock.
314+ The delay time of clock rising edge relative to i2c data signal
315+ change. The unit is i2c module base clock.
327316
328317config I2C_SDA_TX_HOLD
329318 int
330319 depends on I2C_QMSI
331320 help
332- The hold time on the data signal after a negative edge of i2c clock
333- while i2c acts as transmitter.
334- The unit is i2c module base clock.
321+ The hold time on the data signal after a negative edge of i2c clock
322+ while i2c acts as transmitter. The unit is i2c module base clock.
335323
336324config I2C_SDA_RX_HOLD
337325 int
338326 depends on I2C_QMSI
339327 help
340- The hold time on the data signal after a negative edge of i2c clock
341- while i2c acts as receiver.
342- The unit is i2c module base clock.
328+ The hold time on the data signal after a negative edge of i2c clock
329+ while i2c acts as receiver. The unit is i2c module base clock.
343330
344- endif
331+ endif # I2C
0 commit comments