cm3: extract Coresight LSR/LAR definitions

Use a single point of definition for the offset, and add it where it was
missing.
This commit is contained in:
Karl Palsson
2019-10-18 22:29:13 +00:00
parent d8579dde95
commit 3ebd71b464
6 changed files with 30 additions and 12 deletions

View File

@@ -52,6 +52,12 @@
#define DWT_MASK(n) MMIO32(DWT_BASE + 0x24 + (n) * 16)
#define DWT_FUNCTION(n) MMIO32(DWT_BASE + 0x28 + (n) * 16)
/* CoreSight Lock Status Register for this peripheral */
#define DWT_LSR MMIO32(DWT_BASE + CORESIGHT_LSR_OFFSET)
/* CoreSight Lock Access Register for this peripheral */
#define DWT_LAR MMIO32(DWT_BASE + CORESIGHT_LAR_OFFSET)
/*****************************************************************************/
/* Register values */
/*****************************************************************************/