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