omap-wd-timer.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H
  13. #define __LINUX_PLATFORM_DATA_OMAP_WD_TIMER_H
  14. #include <linux/types.h>
  15. /*
  16. * Standardized OMAP reset source bits
  17. *
  18. * This is a subset of the ones listed in arch/arm/mach-omap2/prm.h
  19. * and are the only ones needed in the watchdog driver.
  20. */
  21. #define OMAP_MPU_WD_RST_SRC_ID_SHIFT 3
  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. #endif