blob: bca08f22feea695466519b45c5a018cc600ae981 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if WATCHDOG
config PLATFORM_EC_WATCHDOG_PERIOD_MS
int "Watchdog timeout in ms"
default 1600
help
Set the timeout of the watchdog timer. The watchdog timer reboots
the system if no one reloads the watchdog timer before the timeout.
config PLATFORM_EC_WATCHDOG_WARNING_LEADING_TIME_MS
int "Leading time of the watchdog warning timer in ms"
default 500
depends on !WDT_NPCX && !WDT_ITE_IT8XXX2
help
Set the leading time of the watchdog warning timer. Chromium EC system
uses an auxiliary timer to handle the system warning event. The
auxiliary timer period (CONFIG_AUX_TIMER_PERIOD_MS) is set to
PLATFORM_EC_WATCHDOG_PERIOD_MS -
PLATFORM_EC_WATCHDOG_WARNING_LEADING_TIME_MS.
For the NPCX chip, use WDT_NPCX_DELAY_CYCLES instead of this config.
For the MCHP chip, use WDT_XEC_DELAY_CYCLES instead of this config.
For the ITE chip, use CONFIG_WDT_ITE_WARNING_LEADING_TIME_MS instead
of this config.
config PLATFORM_EC_WATCHDOG_HELPER
bool "Use watchdog helper to trigger warning"
default n
depends on WDT_COUNTER
help
If enabled, watchdog shim will setup cros-ec,watchdog-helper
with CONFIG_WATCHDOG_AUX_TIMER_PERIOD_MS timeout.
Watchdog helper is used to trigger warning and gather debugging
information before hardware watchdog resets the SoC.
endif # WATCHDOG
|