wdog.h 550 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * (C) Copyright 2012,2015 Stephen Warren
  4. */
  5. #ifndef _BCM2835_WDOG_H
  6. #define _BCM2835_WDOG_H
  7. #ifndef CONFIG_BCM2835
  8. #define BCM2835_WDOG_PHYSADDR 0x3f100000
  9. #else
  10. #define BCM2835_WDOG_PHYSADDR 0x20100000
  11. #endif
  12. struct bcm2835_wdog_regs {
  13. u32 unknown0[7];
  14. u32 rstc;
  15. u32 rsts;
  16. u32 wdog;
  17. };
  18. #define BCM2835_WDOG_PASSWORD 0x5a000000
  19. #define BCM2835_WDOG_RSTC_WRCFG_MASK 0x00000030
  20. #define BCM2835_WDOG_RSTC_WRCFG_FULL_RESET 0x00000020
  21. #define BCM2835_WDOG_WDOG_TIMEOUT_MASK 0x0000ffff
  22. #endif