Skip to content

Commit 8740f71

Browse files
Banajit GoswamiWim Van Sebroeck
authored andcommitted
watchdog: s3c2410_wdt - Add extra option to include watchdog for Samsung SoCs
This patch adds HAVE_S3C2410_WATCHDOG to control inclusion of watchdog driver for Samsung SoCs. This option will help to include the driver only for the necessary machines and not for all for any given arch. Signed-off-by: Banajit Goswami <[email protected]> Signed-off-by: Kukjin Kim <[email protected]> Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 7e6811d commit 8740f71

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

drivers/watchdog/Kconfig

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,19 @@ config KS8695_WATCHDOG
145145
Watchdog timer embedded into KS8695 processor. This will reboot your
146146
system when the timeout is reached.
147147

148+
config HAVE_S3C2410_WATCHDOG
149+
bool
150+
help
151+
This will include watchdog timer support for Samsung SoCs. If
152+
you want to include watchdog support for any machine, kindly
153+
select this in the respective mach-XXXX/Kconfig file.
154+
148155
config S3C2410_WATCHDOG
149156
tristate "S3C2410 Watchdog"
150-
depends on ARCH_S3C2410
157+
depends on ARCH_S3C2410 || HAVE_S3C2410_WATCHDOG
151158
help
152-
Watchdog timer block in the Samsung S3C2410 chips. This will
153-
reboot the system when the timer expires with the watchdog
154-
enabled.
159+
Watchdog timer block in the Samsung SoCs. This will reboot
160+
the system when the timer expires with the watchdog enabled.
155161

156162
The driver is limited by the speed of the system's PCLK
157163
signal, so with reasonably fast systems (PCLK around 50-66MHz)

0 commit comments

Comments
 (0)