Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion components/drivers/watchdog/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
config RT_USING_WDT
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

config RT_WDT_I6300ESB
bool "Intel 6300ESB Timer/Watchdog"
depends on RT_USING_DM
depends on RT_USING_WDT
depends on RT_USING_PCI

if RT_USING_DM && RT_USING_WDT
osource "$(SOC_DM_WDT_DIR)/Kconfig"
endif
20 changes: 17 additions & 3 deletions components/drivers/watchdog/SConscript
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
from building import *

cwd = GetCurrentDir()
src = Glob('*.c')
group = []

if not GetDepend(['RT_USING_WDT']):
Return('group')

cwd = GetCurrentDir()
list = os.listdir(cwd)
CPPPATH = [cwd + '/../include']
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_WDT'], CPPPATH = CPPPATH)

src = ['dev_watchdog.c']

if GetDepend(['RT_WDT_DW']):
src += ['watchdog-dw.c']

if GetDepend(['RT_WDT_I6300ESB']):
src += ['watchdog-i6300esb.c']

group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)

Return('group')
Loading