summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/itco_wdt.h
diff options
context:
space:
mode:
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>2017-04-09 15:00:19 -0700
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-04-28 21:51:28 +0300
commit140c91b26ebc48d80c6ac3ef06953b17d7fb3785 (patch)
tree9e76be258e33798e3582fc34878a7ef31f7db4eb /include/linux/platform_data/itco_wdt.h
parentf583a884afecb16fcb8200ebb9956ea369aff57f (diff)
watchdog: iTCO_wdt: Add PMC specific noreboot update api
In some SoCs, setting noreboot bit needs modification to PMC GC registers. But not all PMC drivers allow other drivers to memory map their GC region. This could create mem request conflict in watchdog driver. So this patch adds facility to allow PMC drivers to pass noreboot update function to watchdog drivers via platform data. Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/platform_data/itco_wdt.h')
-rw-r--r--include/linux/platform_data/itco_wdt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/platform_data/itco_wdt.h b/include/linux/platform_data/itco_wdt.h
index f16542c77ff7..0e95527edf25 100644
--- a/include/linux/platform_data/itco_wdt.h
+++ b/include/linux/platform_data/itco_wdt.h
@@ -14,6 +14,10 @@
struct itco_wdt_platform_data {
char name[32];
unsigned int version;
+ /* private data to be passed to update_no_reboot_bit API */
+ void *no_reboot_priv;
+ /* pointer for platform specific no reboot update function */
+ int (*update_no_reboot_bit)(void *priv, bool set);
};
#endif /* _ITCO_WDT_H_ */