aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/Kconfig8
-rw-r--r--drivers/watchdog/booke_wdt.c4
-rw-r--r--drivers/watchdog/omap_wdt.c7
3 files changed, 13 insertions, 6 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 46e258c533cc..53d75719078e 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1117,10 +1117,10 @@ config BOOKE_WDT
1117config BOOKE_WDT_DEFAULT_TIMEOUT 1117config BOOKE_WDT_DEFAULT_TIMEOUT
1118 int "PowerPC Book-E Watchdog Timer Default Timeout" 1118 int "PowerPC Book-E Watchdog Timer Default Timeout"
1119 depends on BOOKE_WDT 1119 depends on BOOKE_WDT
1120 default 38 if FSL_BOOKE 1120 default 38 if PPC_FSL_BOOK3E
1121 range 0 63 if FSL_BOOKE 1121 range 0 63 if PPC_FSL_BOOK3E
1122 default 3 if !FSL_BOOKE 1122 default 3 if !PPC_FSL_BOOK3E
1123 range 0 3 if !FSL_BOOKE 1123 range 0 3 if !PPC_FSL_BOOK3E
1124 help 1124 help
1125 Select the default watchdog timer period to be used by the PowerPC 1125 Select the default watchdog timer period to be used by the PowerPC
1126 Book-E watchdog driver. A watchdog "event" occurs when the bit 1126 Book-E watchdog driver. A watchdog "event" occurs when the bit
diff --git a/drivers/watchdog/booke_wdt.c b/drivers/watchdog/booke_wdt.c
index ce0ab4415eff..3fe82d0e8caa 100644
--- a/drivers/watchdog/booke_wdt.c
+++ b/drivers/watchdog/booke_wdt.c
@@ -37,7 +37,7 @@
37u32 booke_wdt_enabled; 37u32 booke_wdt_enabled;
38u32 booke_wdt_period = CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT; 38u32 booke_wdt_period = CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT;
39 39
40#ifdef CONFIG_FSL_BOOKE 40#ifdef CONFIG_PPC_FSL_BOOK3E
41#define WDTP(x) ((((x)&0x3)<<30)|(((x)&0x3c)<<15)) 41#define WDTP(x) ((((x)&0x3)<<30)|(((x)&0x3c)<<15))
42#define WDTP_MASK (WDTP(0x3f)) 42#define WDTP_MASK (WDTP(0x3f))
43#else 43#else
@@ -190,7 +190,7 @@ static long booke_wdt_ioctl(struct file *file,
190 case WDIOC_SETTIMEOUT: 190 case WDIOC_SETTIMEOUT:
191 if (get_user(tmp, p)) 191 if (get_user(tmp, p))
192 return -EFAULT; 192 return -EFAULT;
193#ifdef CONFIG_FSL_BOOKE 193#ifdef CONFIG_PPC_FSL_BOOK3E
194 /* period of 1 gives the largest possible timeout */ 194 /* period of 1 gives the largest possible timeout */
195 if (tmp > period_to_sec(1)) 195 if (tmp > period_to_sec(1))
196 return -EINVAL; 196 return -EINVAL;
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c
index 27ab8db67d14..fceec4f4eb7e 100644
--- a/drivers/watchdog/omap_wdt.c
+++ b/drivers/watchdog/omap_wdt.c
@@ -413,6 +413,12 @@ static int omap_wdt_resume(struct platform_device *pdev)
413#define omap_wdt_resume NULL 413#define omap_wdt_resume NULL
414#endif 414#endif
415 415
416static const struct of_device_id omap_wdt_of_match[] = {
417 { .compatible = "ti,omap3-wdt", },
418 {},
419};
420MODULE_DEVICE_TABLE(of, omap_wdt_of_match);
421
416static struct platform_driver omap_wdt_driver = { 422static struct platform_driver omap_wdt_driver = {
417 .probe = omap_wdt_probe, 423 .probe = omap_wdt_probe,
418 .remove = __devexit_p(omap_wdt_remove), 424 .remove = __devexit_p(omap_wdt_remove),
@@ -422,6 +428,7 @@ static struct platform_driver omap_wdt_driver = {
422 .driver = { 428 .driver = {
423 .owner = THIS_MODULE, 429 .owner = THIS_MODULE,
424 .name = "omap_wdt", 430 .name = "omap_wdt",
431 .of_match_table = omap_wdt_of_match,
425 }, 432 },
426}; 433};
427 434