Skip to content

Commit daf5cb1

Browse files
committed
drivers: i2c: Kconfig.mspm0g3xxx watchdog props
add properties to configure the I2C watchdog reset timeout and and panic error code. Also, add a new kconfig property to define the driver init priority. Since the i2c driver has a dependency to the counter driver, we need to adjust for that. Signed-off-by: Dimitris Karnikis <[email protected]>
1 parent 15e3e73 commit daf5cb1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

drivers/i2c/Kconfig.mspm0g3xxx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,27 @@ config I2C_MSPM0G3XXX_TRANSFER_TIMEOUT
2424
0 means that the driver should use the K_FOREVER value,
2525
i.e. it should wait as long as necessary.
2626

27+
config I2C_MSPM0G3XXX_WATCHDOG_TIMEOUT
28+
int "I2C watchdog reset timeout (us)"
29+
default 300
30+
help
31+
Defines the timeout in microseconds after which the watchdog will
32+
reset the I2C lines and trigger a system panic.
33+
34+
config I2C_MSPM0G3XXX_WATCHDOG_PANIC_CODE
35+
int "I2C watchdog reset panic code"
36+
default 17
37+
help
38+
Defines the panic code that will be triggered when the I2C watchdog
39+
times out and resets the I2C lines. This code can be used for debugging
40+
or logging the failure reason.
41+
42+
43+
config I2C_MSPM0G3XXX_INIT_PRIORITY
44+
int "TI I2C MSPM0G3XXX init priority"
45+
default COUNTER_INIT_PRIORITY
46+
help
47+
Define the driver init priority. The driver has a dependency on the counter
48+
component.
49+
2750
endif # I2C_MSPM0G3XXX

0 commit comments

Comments
 (0)