Kconfig 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. menuconfig RT_USING_WDT
  2. bool "Using Watch Dog device drivers"
  3. default n
  4. help
  5. Enable the common watchdog device layer so watchdog-capable SoCs or
  6. external supervisors can be exposed through the RT-Thread `rt_watchdog`
  7. APIs. Selecting this option allows watchdog platform drivers to register
  8. /dev/wdt style devices, lets applications query/set timeout windows, and
  9. integrates watchdog notifications into the driver-model (DM) probe/remove
  10. flow. Disable it only when the hardware has no watchdog or it is managed
  11. entirely outside of RT-Thread, because the system will no longer be able
  12. to arm, feed or inspect watchdogs during boot and runtime.
  13. config RT_WDT_DW
  14. bool "Synopsys DesignWare watchdog"
  15. depends on RT_USING_DM
  16. depends on RT_USING_WDT
  17. depends on RT_USING_RESET
  18. default n
  19. help
  20. Build the driver for Synopsys DesignWare watchdog blocks that appear in
  21. many ARM and RISC-V SoCs. The driver maps the DM platform resources,
  22. exports the 16 preset timeout levels ("TOPs"), supports optional pre-
  23. timeout interrupts, and automatically toggles the associated reset line
  24. through `RT_USING_RESET`. Once started the DW watchdog cannot be disabled,
  25. so the driver only gates the peripheral clock and pulses the reset
  26. controller to keep it under control. Use this when your device tree
  27. exposes a `snps,dw-wdt` node and you need either reset-based system
  28. recovery or two-stage IRQ/Reset supervision; otherwise leave it off.
  29. config RT_WDT_I6300ESB
  30. bool "Intel 6300ESB Timer/Watchdog"
  31. depends on RT_USING_DM
  32. depends on RT_USING_WDT
  33. depends on RT_USING_PCI
  34. help
  35. Enable support for the watchdog integrated in Intel 6300ESB southbridge
  36. chipsets. The driver binds to the PCI device, unlocks the dual-stage timer,
  37. and exposes the 1 kHz heartbeat window (1–2046 seconds) through the
  38. standard watchdog IOCTLs. It can optionally enter "nowayout" mode when the
  39. firmware locks the control register, so be careful when testing on shared
  40. x86 hardware. Select this only on boards that actually contain the 6300ESB
  41. watchdog because the driver directly touches PCI config space and assumes
  42. the LPC reset registers are routed correctly.
  43. if RT_USING_DM && RT_USING_WDT
  44. osource "$(SOC_DM_WDT_DIR)/Kconfig"
  45. endif