wdog.h 950 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * (C) Copyright 2012 Stephen Warren
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * version 2 as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifndef _BCM2835_TIMER_H
  17. #define _BCM2835_TIMER_H
  18. #define BCM2835_WDOG_PHYSADDR 0x20100000
  19. struct bcm2835_wdog_regs {
  20. u32 unknown0[7];
  21. u32 rstc;
  22. u32 unknown1;
  23. u32 wdog;
  24. };
  25. #define BCM2835_WDOG_PASSWORD 0x5a000000
  26. #define BCM2835_WDOG_RSTC_WRCFG_MASK 0x00000030
  27. #define BCM2835_WDOG_RSTC_WRCFG_FULL_RESET 0x00000020
  28. #define BCM2835_WDOG_WDOG_TIMEOUT_MASK 0x0000ffff
  29. #endif