Commit | Line | Data |
---|---|---|
37c67d03 PW |
1 | /* |
2 | * OMAP2+ WDTIMER-specific function prototypes | |
3 | * | |
4 | * Copyright (C) 2012 Texas Instruments, Inc. | |
5 | * Paul Walmsley | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License as published by | |
9 | * the Free Software Foundation; either version 2 of the License, or | |
10 | * (at your option) any later version. | |
11 | */ | |
12 | ||
13 | #ifndef __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H | |
14 | #define __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H | |
15 | ||
16 | #include <linux/types.h> | |
17 | ||
18 | /* | |
19 | * Standardized OMAP reset source bits | |
20 | * | |
21 | * This is a subset of the ones listed in arch/arm/mach-omap2/prm.h | |
22 | * and are the only ones needed in the watchdog driver. | |
23 | */ | |
24 | #define OMAP_MPU_WD_RST_SRC_ID_SHIFT 3 | |
25 | ||
26 | /** | |
27 | * struct omap_wd_timer_platform_data - WDTIMER integration to the host SoC | |
28 | * @read_reset_sources - fn ptr for the SoC to indicate the last reset cause | |
29 | * | |
30 | * The function pointed to by @read_reset_sources must return its data | |
31 | * in a standard format - search for RST_SRC_ID_SHIFT in | |
32 | * arch/arm/mach-omap2 | |
33 | */ | |
34 | struct omap_wd_timer_platform_data { | |
35 | u32 (*read_reset_sources)(void); | |
36 | }; | |
37 | ||
38 | #endif |