at91_dbu.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2010
  3. * Reinhard Meyer, reinhard.meyer@emk-elektronik.de
  4. *
  5. * Debug Unit
  6. * Based on AT91SAM9XE datasheet
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. */
  13. #ifndef AT91_DBU_H
  14. #define AT91_DBU_H
  15. #ifndef __ASSEMBLY__
  16. typedef struct at91_dbu {
  17. u32 cr; /* Control Register WO */
  18. u32 mr; /* Mode Register RW */
  19. u32 ier; /* Interrupt Enable Register WO */
  20. u32 idr; /* Interrupt Disable Register WO */
  21. u32 imr; /* Interrupt Mask Register RO */
  22. u32 sr; /* Status Register RO */
  23. u32 rhr; /* Receive Holding Register RO */
  24. u32 thr; /* Transmit Holding Register WO */
  25. u32 brgr; /* Baud Rate Generator Register RW */
  26. u32 res1[7];/* 0x0024 - 0x003C Reserved */
  27. u32 cidr; /* Chip ID Register RO */
  28. u32 exid; /* Chip ID Extension Register RO */
  29. u32 fnr; /* Force NTRST Register RW */
  30. } at91_dbu_t;
  31. #endif /* __ASSEMBLY__ */
  32. #define AT91_DBU_CID_ARCH_MASK 0x0ff00000
  33. #define AT91_DBU_CID_ARCH_9xx 0x01900000
  34. #define AT91_DBU_CID_ARCH_9XExx 0x02900000
  35. #endif