aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-03-11 14:22:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-11 14:22:15 -0400
commita089e4fed5c5e8717f233d71bb750fbf9e1f38e0 (patch)
treee34611231af2b4bb0261864691b7f3618e101b33 /include/linux
parentcf0240a755b8b3df51b0b857b03309a666611d58 (diff)
parent458c8961c194f2d2cb6ffed3dd9b6692d74ad65e (diff)
Merge tag 'linux-watchdog-5.1-rc1' of git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck: - a new watchdog driver for the Mellanox systems - renesas-wdt: Document r8a77470 support - numerous 'Mark expected switch fall-throughs' - qcom: Add suspend/resume support - some small fixes and documentation updates * tag 'linux-watchdog-5.1-rc1' of git://www.linux-watchdog.org/linux-watchdog: watchdog: w83877f_wdt: Mark expected switch fall-through watchdog: sc520_wdt: Mark expected switch fall-through watchdog: sbc60xxwdt: Mark expected switch fall-through watchdog: smsc37b787_wdt: Mark expected switch fall-through watchdog: sc1200: Mark expected switch fall-through watchdog: pc87413: Mark expected switch fall-through Documentation/watchdog: Add documentation mlx-wdt driver watchdog: mlx-wdt: introduce a watchdog driver for Mellanox systems. platform_data/mlxreg: additions for Mellanox watchdog driver. watchdog: Update sysfs documentation. watchdog: dw: remove useless pr_fmt watchdog: pika_wdt: drop pointless static qualifier in pikawdt_init watchdog/hpwdt: Update Kconfig documentation dt-bindings: watchdog: renesas-wdt: Document r8a77470 support watchdog: qcom: Add suspend/resume support
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/platform_data/mlxreg.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h
index 1b2f86f96743..6d54fe3bcac9 100644
--- a/include/linux/platform_data/mlxreg.h
+++ b/include/linux/platform_data/mlxreg.h
@@ -35,6 +35,19 @@
35#define __LINUX_PLATFORM_DATA_MLXREG_H 35#define __LINUX_PLATFORM_DATA_MLXREG_H
36 36
37#define MLXREG_CORE_LABEL_MAX_SIZE 32 37#define MLXREG_CORE_LABEL_MAX_SIZE 32
38#define MLXREG_CORE_WD_FEATURE_NOWAYOUT BIT(0)
39#define MLXREG_CORE_WD_FEATURE_START_AT_BOOT BIT(1)
40
41/**
42 * enum mlxreg_wdt_type - type of HW watchdog
43 *
44 * TYPE1 HW watchdog implementation exist in old systems.
45 * All new systems have TYPE2 HW watchdog.
46 */
47enum mlxreg_wdt_type {
48 MLX_WDT_TYPE1,
49 MLX_WDT_TYPE2,
50};
38 51
39/** 52/**
40 * struct mlxreg_hotplug_device - I2C device data: 53 * struct mlxreg_hotplug_device - I2C device data:
@@ -112,11 +125,17 @@ struct mlxreg_core_item {
112 * @data: instance private data; 125 * @data: instance private data;
113 * @regmap: register map of parent device; 126 * @regmap: register map of parent device;
114 * @counter: number of instances; 127 * @counter: number of instances;
128 * @features: supported features of device;
129 * @version: implementation version;
130 * @identity: device identity name;
115 */ 131 */
116struct mlxreg_core_platform_data { 132struct mlxreg_core_platform_data {
117 struct mlxreg_core_data *data; 133 struct mlxreg_core_data *data;
118 void *regmap; 134 void *regmap;
119 int counter; 135 int counter;
136 u32 features;
137 u32 version;
138 char identity[MLXREG_CORE_LABEL_MAX_SIZE];
120}; 139};
121 140
122/** 141/**