ADIv5: Implement function to lookup CoreSight component

This patch implements "dap_lookup_cs_component()", which allows to lookup CS
component by it's identification.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
This commit is contained in:
Marek Vasut
2010-10-31 07:11:47 +01:00
parent 0649fb2f6c
commit 887cac65b0
2 changed files with 45 additions and 0 deletions

View File

@@ -383,6 +383,10 @@ int ahbap_debugport_init(struct adiv5_dap *swjdp);
int dap_get_debugbase(struct adiv5_dap *dap, int apsel,
uint32_t *dbgbase, uint32_t *apid);
/* Lookup CoreSight component */
int dap_lookup_cs_component(struct adiv5_dap *dap, int apsel,
uint32_t dbgbase, uint8_t type, uint32_t *addr);
struct target;
/* Put debug link into SWD mode */