root/include/linux/platform_data/omap-wd-timer.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0-or-later */
   2 /*
   3  * OMAP2+ WDTIMER-specific function prototypes
   4  *
   5  * Copyright (C) 2012 Texas Instruments, Inc.
   6  * Paul Walmsley
   7  */
   8 
   9 #ifndef __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H
  10 #define __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H
  11 
  12 #include <linux/types.h>
  13 
  14 /*
  15  * Standardized OMAP reset source bits
  16  *
  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.
  19  */
  20 #define OMAP_MPU_WD_RST_SRC_ID_SHIFT                            3
  21 
  22 /**
  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
  25  *
  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
  28  * arch/arm/mach-omap2
  29  */
  30 struct omap_wd_timer_platform_data {
  31         u32 (*read_reset_sources)(void);
  32 };
  33 
  34 #endif

/* [<][>][^][v][top][bottom][index][help] */