summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorBibek Basu <bbasu@nvidia.com>2013-11-07 11:02:14 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2013-11-21 00:37:12 -0800
commitd49be3d153988cd82d0249b7bb6ec4976c402541 (patch)
tree065ba938b4e88854c20d2a15f32fb298016ea8f0 /include/linux/mfd
parent929addaa7d82f145ae97db8d913dc17395ab2143 (diff)
watchdog: as3722_wdt: support for AMS AS3722
Add watchdog timer driver for as3722 device. The timer can be start/stop and set timing through watchdog subsystem callbacks. Bug 1396052 Change-Id: Ib4ce5bdac1bcca37907c5f89820a2719d54ce442 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/333643 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/as3722-plat.h2
-rw-r--r--include/linux/mfd/as3722.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/as3722-plat.h b/include/linux/mfd/as3722-plat.h
index 07918eec47b0..9c6aa348d550 100644
--- a/include/linux/mfd/as3722-plat.h
+++ b/include/linux/mfd/as3722-plat.h
@@ -154,6 +154,8 @@ struct as3722_platform_data {
struct as3722_pinctrl_platform_data *pinctrl_pdata;
int num_pinctrl;
struct as3722_adc_extcon_platform_data *extcon_pdata;
+ int watchdog_timer_initial_period;
+ int watchdog_timer_mode;
bool enable_clk32k_out;
};
diff --git a/include/linux/mfd/as3722.h b/include/linux/mfd/as3722.h
index a890afec8ae1..869c4a46d17f 100644
--- a/include/linux/mfd/as3722.h
+++ b/include/linux/mfd/as3722.h
@@ -338,6 +338,7 @@
#define AS3722_WATCHDOG_TIMER_MAX 0x7F
#define AS3722_WATCHDOG_ON BIT(0)
#define AS3722_WATCHDOG_SW_SIG BIT(0)
+#define AS3722_WATCHDOG_MODE_MASK 0x06
#define AS3722_EXT_CONTROL_ENABLE1 0x1
#define AS3722_EXT_CONTROL_ENABLE2 0x2