diff options
-rw-r--r-- | drivers/watchdog/Kconfig | 8 | ||||
-rw-r--r-- | drivers/watchdog/booke_wdt.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index fe819b76de5..c450cfcd702 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig | |||
@@ -1115,10 +1115,10 @@ config BOOKE_WDT | |||
1115 | config BOOKE_WDT_DEFAULT_TIMEOUT | 1115 | config BOOKE_WDT_DEFAULT_TIMEOUT |
1116 | int "PowerPC Book-E Watchdog Timer Default Timeout" | 1116 | int "PowerPC Book-E Watchdog Timer Default Timeout" |
1117 | depends on BOOKE_WDT | 1117 | depends on BOOKE_WDT |
1118 | default 38 if FSL_BOOKE | 1118 | default 38 if PPC_FSL_BOOK3E |
1119 | range 0 63 if FSL_BOOKE | 1119 | range 0 63 if PPC_FSL_BOOK3E |
1120 | default 3 if !FSL_BOOKE | 1120 | default 3 if !PPC_FSL_BOOK3E |
1121 | range 0 3 if !FSL_BOOKE | 1121 | range 0 3 if !PPC_FSL_BOOK3E |
1122 | help | 1122 | help |
1123 | Select the default watchdog timer period to be used by the PowerPC | 1123 | Select the default watchdog timer period to be used by the PowerPC |
1124 | Book-E watchdog driver. A watchdog "event" occurs when the bit | 1124 | 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 ce0ab4415ef..3fe82d0e8ca 100644 --- a/drivers/watchdog/booke_wdt.c +++ b/drivers/watchdog/booke_wdt.c | |||
@@ -37,7 +37,7 @@ | |||
37 | u32 booke_wdt_enabled; | 37 | u32 booke_wdt_enabled; |
38 | u32 booke_wdt_period = CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT; | 38 | u32 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; |