Skip to content

Commit 3faba70

Browse files
committed
drivers: i2c: Kconfig.mspm0g3xxx watchdog props
add properties to configure the I2C watchdog reset timeout and and panic error code Signed-off-by: Dimitris Karnikis <[email protected]>
1 parent 15e3e73 commit 3faba70

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/i2c/Kconfig.mspm0g3xxx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,19 @@ 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 0
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+
2742
endif # I2C_MSPM0G3XXX

0 commit comments

Comments
 (0)