aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-13 16:42:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-13 16:42:54 -0400
commit833e68340d108d88f4cb79b7d7223f6859d362ca (patch)
tree89f960431365ce2d47178c0620634b66979497fa
parentc55244137306b626bc64023fd7160985443205a7 (diff)
parentcce78da76601b64305c050f602767bf58cebcf5d (diff)
Merge git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck: - lots of devm_ conversions and cleanup - platform_set_drvdata cleanups - s3c2410: dev_err/dev_info + dev_pm_ops - watchdog_core: don't try to stop device if not running fix - wdrtas: use print_hex_dump - xilinx cleanups - orion_wdt fixes - softdog cleanup - hpwdt: check on UEFI bits - deletion of mpcore_wdt driver - addition of broadcom BCM2835 watchdog timer driver - addition of MEN A21 watcdog devices * git://www.linux-watchdog.org/linux-watchdog: (38 commits) watchdog: hpwdt: Add check for UEFI bits watchdog: softdog: remove replaceable ping operation watchdog: New watchdog driver for MEN A21 watchdogs Watchdog: fix clearing of the watchdog interrupt Watchdog: allow orion_wdt to be built for Dove watchdog: Add Broadcom BCM2835 watchdog timer driver watchdog: delete mpcore_wdt driver watchdog: xilinx: Setup the origin compatible string watchdog: xilinx: Fix driver header watchdog: wdrtas: don't use custom version of print_hex_dump watchdog: core: don't try to stop device if not running watchdog: jz4740: Pass device to clk_get watchdog: twl4030: Remove redundant platform_set_drvdata() watchdog: mpcore: Remove redundant platform_set_drvdata() watchdog: da9055: use platform_{get,set}_drvdata() watchdog: da9052: use platform_{get,set}_drvdata() watchdog: cpwd: use platform_{get,set}_drvdata() watchdog: s3c2410_wdt: convert s3c2410wdt to dev_pm_ops watchdog: s3c2410_wdt: use dev_err()/dev_info() instead of pr_err()/pr_info() watchdog: wm831x: use platform_{get,set}_drvdata() ...
-rw-r--r--Documentation/devicetree/bindings/gpio/men-a021-wdt.txt25
-rw-r--r--Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt5
-rw-r--r--Documentation/watchdog/watchdog-parameters.txt8
-rw-r--r--MAINTAINERS6
-rw-r--r--arch/arm/configs/spear13xx_defconfig1
-rw-r--r--arch/arm/mach-dove/include/mach/bridge-regs.h1
-rw-r--r--arch/arm/mach-kirkwood/include/mach/bridge-regs.h2
-rw-r--r--arch/arm/mach-orion5x/include/mach/bridge-regs.h3
-rw-r--r--drivers/watchdog/Kconfig34
-rw-r--r--drivers/watchdog/Makefile3
-rw-r--r--drivers/watchdog/at32ap700x_wdt.c17
-rw-r--r--drivers/watchdog/bcm2835_wdt.c189
-rw-r--r--drivers/watchdog/bcm63xx_wdt.c9
-rw-r--r--drivers/watchdog/cpwd.c4
-rw-r--r--drivers/watchdog/da9052_wdt.c4
-rw-r--r--drivers/watchdog/da9055_wdt.c4
-rw-r--r--drivers/watchdog/dw_wdt.c11
-rw-r--r--drivers/watchdog/hpwdt.c11
-rw-r--r--drivers/watchdog/imx2_wdt.c6
-rw-r--r--drivers/watchdog/jz4740_wdt.c2
-rw-r--r--drivers/watchdog/mena21_wdt.c270
-rw-r--r--drivers/watchdog/mpcore_wdt.c456
-rw-r--r--drivers/watchdog/mtx-1_wdt.c3
-rw-r--r--drivers/watchdog/mv64x60_wdt.c4
-rw-r--r--drivers/watchdog/nuc900_wdt.c50
-rw-r--r--drivers/watchdog/of_xilinx_wdt.c31
-rw-r--r--drivers/watchdog/orion_wdt.c7
-rw-r--r--drivers/watchdog/pnx4008_wdt.c7
-rw-r--r--drivers/watchdog/rc32434_wdt.c10
-rw-r--r--drivers/watchdog/riowd.c12
-rw-r--r--drivers/watchdog/s3c2410_wdt.c20
-rw-r--r--drivers/watchdog/shwdt.c18
-rw-r--r--drivers/watchdog/softdog.c1
-rw-r--r--drivers/watchdog/sp805_wdt.c7
-rw-r--r--drivers/watchdog/ts72xx_wdt.c67
-rw-r--r--drivers/watchdog/twl4030_wdt.c5
-rw-r--r--drivers/watchdog/watchdog_dev.c6
-rw-r--r--drivers/watchdog/wdrtas.c29
-rw-r--r--drivers/watchdog/wm831x_wdt.c21
39 files changed, 629 insertions, 740 deletions
diff --git a/Documentation/devicetree/bindings/gpio/men-a021-wdt.txt b/Documentation/devicetree/bindings/gpio/men-a021-wdt.txt
new file mode 100644
index 000000000000..370dee3226d9
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/men-a021-wdt.txt
@@ -0,0 +1,25 @@
1Bindings for MEN A21 Watchdog device connected to GPIO lines
2
3Required properties:
4- compatible: "men,a021-wdt"
5- gpios: Specifies the pins that control the Watchdog, order:
6 1: Watchdog enable
7 2: Watchdog fast-mode
8 3: Watchdog trigger
9 4: Watchdog reset cause bit 0
10 5: Watchdog reset cause bit 1
11 6: Watchdog reset cause bit 2
12
13Optional properties:
14- None
15
16Example:
17 watchdog {
18 compatible ="men,a021-wdt";
19 gpios = <&gpio3 9 1 /* WD_EN */
20 &gpio3 10 1 /* WD_FAST */
21 &gpio3 11 1 /* WD_TRIG */
22 &gpio3 6 1 /* RST_CAUSE[0] */
23 &gpio3 7 1 /* RST_CAUSE[1] */
24 &gpio3 8 1>; /* RST_CAUSE[2] */
25 };
diff --git a/Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt b/Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt
index d209366b4a69..f801d71de1cd 100644
--- a/Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt
+++ b/Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt
@@ -5,9 +5,14 @@ Required properties:
5- compatible : should be "brcm,bcm2835-pm-wdt" 5- compatible : should be "brcm,bcm2835-pm-wdt"
6- reg : Specifies base physical address and size of the registers. 6- reg : Specifies base physical address and size of the registers.
7 7
8Optional properties:
9
10- timeout-sec : Contains the watchdog timeout in seconds
11
8Example: 12Example:
9 13
10watchdog { 14watchdog {
11 compatible = "brcm,bcm2835-pm-wdt"; 15 compatible = "brcm,bcm2835-pm-wdt";
12 reg = <0x7e100000 0x28>; 16 reg = <0x7e100000 0x28>;
17 timeout-sec = <10>;
13}; 18};
diff --git a/Documentation/watchdog/watchdog-parameters.txt b/Documentation/watchdog/watchdog-parameters.txt
index 04fddbacdbde..f9492fed4104 100644
--- a/Documentation/watchdog/watchdog-parameters.txt
+++ b/Documentation/watchdog/watchdog-parameters.txt
@@ -194,14 +194,6 @@ reset: Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset
194nowayout: Watchdog cannot be stopped once started 194nowayout: Watchdog cannot be stopped once started
195 (default=kernel config parameter) 195 (default=kernel config parameter)
196------------------------------------------------- 196-------------------------------------------------
197mpcore_wdt:
198mpcore_margin: MPcore timer margin in seconds.
199 (0 < mpcore_margin < 65536, default=60)
200nowayout: Watchdog cannot be stopped once started
201 (default=kernel config parameter)
202mpcore_noboot: MPcore watchdog action, set to 1 to ignore reboots,
203 0 to reboot (default=0
204-------------------------------------------------
205mv64x60_wdt: 197mv64x60_wdt:
206nowayout: Watchdog cannot be stopped once started 198nowayout: Watchdog cannot be stopped once started
207 (default=kernel config parameter) 199 (default=kernel config parameter)
diff --git a/MAINTAINERS b/MAINTAINERS
index 705681e5a6bb..4d43db629689 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5387,6 +5387,12 @@ F: drivers/mtd/
5387F: include/linux/mtd/ 5387F: include/linux/mtd/
5388F: include/uapi/mtd/ 5388F: include/uapi/mtd/
5389 5389
5390MEN A21 WATCHDOG DRIVER
5391M: Johannes Thumshirn <johannes.thumshirn@men.de>
5392L: linux-watchdog@vger.kernel.org
5393S: Supported
5394F: drivers/watchdog/mena21_wdt.c
5395
5390METAG ARCHITECTURE 5396METAG ARCHITECTURE
5391M: James Hogan <james.hogan@imgtec.com> 5397M: James Hogan <james.hogan@imgtec.com>
5392S: Supported 5398S: Supported
diff --git a/arch/arm/configs/spear13xx_defconfig b/arch/arm/configs/spear13xx_defconfig
index 1fdb82694ca2..82eaa552ed14 100644
--- a/arch/arm/configs/spear13xx_defconfig
+++ b/arch/arm/configs/spear13xx_defconfig
@@ -61,7 +61,6 @@ CONFIG_GPIO_SYSFS=y
61CONFIG_GPIO_PL061=y 61CONFIG_GPIO_PL061=y
62# CONFIG_HWMON is not set 62# CONFIG_HWMON is not set
63CONFIG_WATCHDOG=y 63CONFIG_WATCHDOG=y
64CONFIG_MPCORE_WATCHDOG=y
65# CONFIG_HID_SUPPORT is not set 64# CONFIG_HID_SUPPORT is not set
66CONFIG_USB=y 65CONFIG_USB=y
67# CONFIG_USB_DEVICE_CLASS is not set 66# CONFIG_USB_DEVICE_CLASS is not set
diff --git a/arch/arm/mach-dove/include/mach/bridge-regs.h b/arch/arm/mach-dove/include/mach/bridge-regs.h
index 99f259e8cf33..5362df3df89f 100644
--- a/arch/arm/mach-dove/include/mach/bridge-regs.h
+++ b/arch/arm/mach-dove/include/mach/bridge-regs.h
@@ -26,6 +26,7 @@
26#define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE + 0x010c) 26#define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE + 0x010c)
27#define SOFT_RESET 0x00000001 27#define SOFT_RESET 0x00000001
28 28
29#define BRIDGE_CAUSE (BRIDGE_VIRT_BASE + 0x0110)
29#define BRIDGE_INT_TIMER1_CLR (~0x0004) 30#define BRIDGE_INT_TIMER1_CLR (~0x0004)
30 31
31#define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0200) 32#define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE + 0x0200)
diff --git a/arch/arm/mach-kirkwood/include/mach/bridge-regs.h b/arch/arm/mach-kirkwood/include/mach/bridge-regs.h
index d4cbe5e81bb4..91242c944d7a 100644
--- a/arch/arm/mach-kirkwood/include/mach/bridge-regs.h
+++ b/arch/arm/mach-kirkwood/include/mach/bridge-regs.h
@@ -21,14 +21,12 @@
21#define CPU_RESET 0x00000002 21#define CPU_RESET 0x00000002
22 22
23#define RSTOUTn_MASK (BRIDGE_VIRT_BASE + 0x0108) 23#define RSTOUTn_MASK (BRIDGE_VIRT_BASE + 0x0108)