fsl_wdog.h 405 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2015 Freescale Semiconductor, Inc.
  4. */
  5. struct watchdog_regs {
  6. u16 wcr; /* Control */
  7. u16 wsr; /* Service */
  8. u16 wrsr; /* Reset Status */
  9. };
  10. #define WCR_WDZST 0x01
  11. #define WCR_WDBG 0x02
  12. #define WCR_WDE 0x04
  13. #define WCR_WDT 0x08
  14. #define WCR_SRS 0x10
  15. #define WCR_WDA 0x20
  16. #define SET_WCR_WT(x) (x << 8)
  17. #define WCR_WT_MSK SET_WCR_WT(0xFF)