Skip to content

Commit 2532450

Browse files
GuEe-GUIRbb666
authored andcommitted
[WDT] Add Synopsys DesignWare watchdog
This device is commonly used in SoCs. Signed-off-by: GuEe-GUI <[email protected]>
1 parent 37818aa commit 2532450

File tree

3 files changed

+631
-0
lines changed

3 files changed

+631
-0
lines changed

components/drivers/watchdog/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ menuconfig RT_USING_WDT
22
bool "Using Watch Dog device drivers"
33
default n
44

5+
config RT_WDT_DW
6+
bool "Synopsys DesignWare watchdog"
7+
depends on RT_USING_DM
8+
depends on RT_USING_WDT
9+
depends on RT_USING_RESET
10+
default n
11+
512
if RT_USING_DM && RT_USING_WDT
613
osource "$(SOC_DM_WDT_DIR)/Kconfig"
714
endif

components/drivers/watchdog/SConscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ CPPPATH = [cwd + '/../include']
1111

1212
src = ['dev_watchdog.c']
1313

14+
if GetDepend(['RT_WDT_DW']):
15+
src += ['watchdog-dw.c']
16+
1417
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
1518

1619
Return('group')

0 commit comments

Comments
 (0)