at91_dbu.h 1.0 KB

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