wdt.h 707 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2010
  4. * Matt Waddel, <matt.waddel@linaro.org>
  5. */
  6. #ifndef _WDT_H_
  7. #define _WDT_H_
  8. /* Watchdog timer (SP805) register base address */
  9. #define WDT_BASE 0x100E5000
  10. #define WDT_EN 0x2
  11. #define WDT_RESET_LOAD 0x0
  12. struct wdt {
  13. u32 wdogload; /* 0x000 */
  14. u32 wdogvalue;
  15. u32 wdogcontrol;
  16. u32 wdogintclr;
  17. u32 wdogris;
  18. u32 wdogmis;
  19. u32 res1[0x2F9];
  20. u32 wdoglock; /* 0xC00 */
  21. u32 res2[0xBE];
  22. u32 wdogitcr; /* 0xF00 */
  23. u32 wdogitop;
  24. u32 res3[0x35];
  25. u32 wdogperiphid0; /* 0xFE0 */
  26. u32 wdogperiphid1;
  27. u32 wdogperiphid2;
  28. u32 wdogperiphid3;
  29. u32 wdogpcellid0;
  30. u32 wdogpcellid1;
  31. u32 wdogpcellid2;
  32. u32 wdogpcellid3;
  33. };
  34. #endif /* _WDT_H_ */