Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208573
b: refs/heads/master
c: 9e354ea
h: refs/heads/master
i:
  208571: 447431c
v: v3
  • Loading branch information
Alexander Shishkin authored and Russell King committed Aug 10, 2010
1 parent 58a21c4 commit 8ec9b88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 686ff22812d908eaa537edd62fb1eb3d64336301
refs/heads/master: 9e354ea8e0710baf05804168fdabe90231b3d363
8 changes: 6 additions & 2 deletions trunk/arch/arm/include/asm/hardware/coresight.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ struct tracectx {
/* CoreSight Component Registers */
#define CSCR_CLASS 0xff4

#define CSCR_PRSR 0x314

#define UNLOCK_MAGIC 0xc5acce55

/* ETM control register, "ETM Architecture", 3.3.1 */
Expand Down Expand Up @@ -132,6 +130,12 @@ struct tracectx {
ETMCTRL_BRANCH_OUTPUT | \
ETMCTRL_DO_CONTEXTID)

/* ETM management registers, "ETM Architecture", 3.5.24 */
#define ETMMR_OSLAR 0x300
#define ETMMR_OSLSR 0x304
#define ETMMR_OSSRR 0x308
#define ETMMR_PDSR 0x314

/* ETB registers, "CoreSight Components TRM", 9.3 */
#define ETBR_DEPTH 0x04
#define ETBR_STATUS 0x0c
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/kernel/etm.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ static int __init etm_probe(struct amba_device *dev, struct amba_id *id)
t->etm_portsz = 1;

etm_unlock(t);
ret = etm_readl(t, CSCR_PRSR);
ret = etm_readl(t, ETMMR_PDSR);

t->ncmppairs = etm_readl(t, ETMR_CONFCODE) & 0xf;
etm_writel(t, 0x440, ETMR_CTRL);
Expand Down

0 comments on commit 8ec9b88

Please sign in to comment.