at91_dbu.h 979 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2010
  4. * Reinhard Meyer, reinhard.meyer@emk-elektronik.de
  5. *
  6. * Debug Unit
  7. * Based on AT91SAM9XE datasheet
  8. */
  9. #ifndef AT91_DBU_H
  10. #define AT91_DBU_H
  11. #ifndef __ASSEMBLY__
  12. typedef struct at91_dbu {
  13. u32 cr; /* Control Register WO */
  14. u32 mr; /* Mode Register RW */
  15. u32 ier; /* Interrupt Enable Register WO */
  16. u32 idr; /* Interrupt Disable Register WO */
  17. u32 imr; /* Interrupt Mask Register RO */
  18. u32 sr; /* Status Register RO */
  19. u32 rhr; /* Receive Holding Register RO */
  20. u32 thr; /* Transmit Holding Register WO */
  21. u32 brgr; /* Baud Rate Generator Register RW */
  22. u32 res1[7];/* 0x0024 - 0x003C Reserved */
  23. u32 cidr; /* Chip ID Register RO */
  24. u32 exid; /* Chip ID Extension Register RO */
  25. u32 fnr; /* Force NTRST Register RW */
  26. } at91_dbu_t;
  27. #endif /* __ASSEMBLY__ */
  28. #define AT91_DBU_CID_ARCH_MASK 0x0ff00000
  29. #define AT91_DBU_CID_ARCH_9xx 0x01900000
  30. #define AT91_DBU_CID_ARCH_9XExx 0x02900000
  31. #endif