omap-wd-timer.h 901 B

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H
  9. #define __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H
  10. #include <linux/types.h>
  11. /*
  12. * Standardized OMAP reset source bits
  13. *
  14. * This is a subset of the ones listed in arch/arm/mach-omap2/prm.h
  15. * and are the only ones needed in the watchdog driver.
  16. */
  17. #define OMAP_MPU_WD_RST_SRC_ID_SHIFT 3
  18. /**
  19. * struct omap_wd_timer_platform_data - WDTIMER integration to the host SoC
  20. * @read_reset_sources - fn ptr for the SoC to indicate the last reset cause
  21. *
  22. * The function pointed to by @read_reset_sources must return its data
  23. * in a standard format - search for RST_SRC_ID_SHIFT in
  24. * arch/arm/mach-omap2
  25. */
  26. struct omap_wd_timer_platform_data {
  27. u32 (*read_reset_sources)(void);
  28. };
  29. #endif