mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-20 11:04:21 +08:00
[WDT] Add Synopsys DesignWare watchdog
This device is commonly used in SoCs. Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -2,6 +2,13 @@ menuconfig RT_USING_WDT
|
||||
bool "Using Watch Dog device drivers"
|
||||
default n
|
||||
|
||||
config RT_WDT_DW
|
||||
bool "Synopsys DesignWare watchdog"
|
||||
depends on RT_USING_DM
|
||||
depends on RT_USING_WDT
|
||||
depends on RT_USING_RESET
|
||||
default n
|
||||
|
||||
if RT_USING_DM && RT_USING_WDT
|
||||
osource "$(SOC_DM_WDT_DIR)/Kconfig"
|
||||
endif
|
||||
|
||||
@@ -11,6 +11,9 @@ CPPPATH = [cwd + '/../include']
|
||||
|
||||
src = ['dev_watchdog.c']
|
||||
|
||||
if GetDepend(['RT_WDT_DW']):
|
||||
src += ['watchdog-dw.c']
|
||||
|
||||
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user