1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * OMAP2+ WDTIMER-specific function prototypes 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2012 Texas Instruments, Inc. 6*4882a593Smuzhiyun * Paul Walmsley 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #ifndef __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H 10*4882a593Smuzhiyun #define __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun #include <linux/types.h> 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun /* 15*4882a593Smuzhiyun * Standardized OMAP reset source bits 16*4882a593Smuzhiyun * 17*4882a593Smuzhiyun * This is a subset of the ones listed in arch/arm/mach-omap2/prm.h 18*4882a593Smuzhiyun * and are the only ones needed in the watchdog driver. 19*4882a593Smuzhiyun */ 20*4882a593Smuzhiyun #define OMAP_MPU_WD_RST_SRC_ID_SHIFT 3 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun /** 23*4882a593Smuzhiyun * struct omap_wd_timer_platform_data - WDTIMER integration to the host SoC 24*4882a593Smuzhiyun * @read_reset_sources - fn ptr for the SoC to indicate the last reset cause 25*4882a593Smuzhiyun * 26*4882a593Smuzhiyun * The function pointed to by @read_reset_sources must return its data 27*4882a593Smuzhiyun * in a standard format - search for RST_SRC_ID_SHIFT in 28*4882a593Smuzhiyun * arch/arm/mach-omap2 29*4882a593Smuzhiyun */ 30*4882a593Smuzhiyun struct omap_wd_timer_platform_data { 31*4882a593Smuzhiyun u32 (*read_reset_sources)(void); 32*4882a593Smuzhiyun }; 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun #endif 35