Mark Brown | 213f326 | 2008-10-10 15:58:09 +0100 | [diff] [blame] | 1 | /* |
| 2 | * wdt.h -- Watchdog Driver for Wolfson WM8350 PMIC |
| 3 | * |
Mark Brown | add41cb | 2008-10-13 15:45:22 +0100 | [diff] [blame] | 4 | * Copyright 2007, 2008 Wolfson Microelectronics PLC |
Mark Brown | 213f326 | 2008-10-10 15:58:09 +0100 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the |
| 8 | * Free Software Foundation; either version 2 of the License, or (at your |
| 9 | * option) any later version. |
| 10 | */ |
| 11 | |
| 12 | #ifndef __LINUX_MFD_WM8350_WDT_H_ |
| 13 | #define __LINUX_MFD_WM8350_WDT_H_ |
| 14 | |
Mark Brown | add41cb | 2008-10-13 15:45:22 +0100 | [diff] [blame] | 15 | #include <linux/platform_device.h> |
| 16 | |
Mark Brown | 213f326 | 2008-10-10 15:58:09 +0100 | [diff] [blame] | 17 | #define WM8350_WDOG_HIB_MODE 0x0080 |
| 18 | #define WM8350_WDOG_DEBUG 0x0040 |
| 19 | #define WM8350_WDOG_MODE_MASK 0x0030 |
| 20 | #define WM8350_WDOG_TO_MASK 0x0007 |
| 21 | |
| 22 | #define WM8350_IRQ_SYS_WDOG_TO 24 |
| 23 | |
Mark Brown | add41cb | 2008-10-13 15:45:22 +0100 | [diff] [blame] | 24 | struct wm8350_wdt { |
| 25 | struct platform_device *pdev; |
| 26 | }; |
| 27 | |
Mark Brown | 213f326 | 2008-10-10 15:58:09 +0100 | [diff] [blame] | 28 | #endif |