cortex_m: Select an AP when accessing the DAP
Prepare to support multiple cortex-m cores on one DAP. Uses mem_ap_sel_* functions and removes mem_ap_* functions. Adds a new debug_ap parameter to the cortex_m (currently set to zero as in existing code). Change-Id: I6926029d1e7bf44a42d453d1aff349bda824ba72 Signed-off-by: Patrick Stewart <patstew@gmail.com> Reviewed-on: http://openocd.zylin.com/2983 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
committed by
Andreas Fritiofson
parent
c560d9d31b
commit
67f24e6734
@@ -422,16 +422,6 @@ void dap_ap_select(struct adiv5_dap *dap, uint8_t ap);
|
||||
int dap_setup_accessport(struct adiv5_dap *swjdp,
|
||||
uint32_t csw, uint32_t tar);
|
||||
|
||||
/* Queued MEM-AP memory mapped single word transfers */
|
||||
int mem_ap_read_u32(struct adiv5_dap *swjdp, uint32_t address, uint32_t *value);
|
||||
int mem_ap_write_u32(struct adiv5_dap *swjdp, uint32_t address, uint32_t value);
|
||||
|
||||
/* Synchronous MEM-AP memory mapped single word transfers */
|
||||
int mem_ap_read_atomic_u32(struct adiv5_dap *swjdp,
|
||||
uint32_t address, uint32_t *value);
|
||||
int mem_ap_write_atomic_u32(struct adiv5_dap *swjdp,
|
||||
uint32_t address, uint32_t value);
|
||||
|
||||
/* Queued MEM-AP memory mapped single word transfers with selection of ap */
|
||||
int mem_ap_sel_read_u32(struct adiv5_dap *swjdp, uint8_t ap,
|
||||
uint32_t address, uint32_t *value);
|
||||
@@ -444,12 +434,6 @@ int mem_ap_sel_read_atomic_u32(struct adiv5_dap *swjdp, uint8_t ap,
|
||||
int mem_ap_sel_write_atomic_u32(struct adiv5_dap *swjdp, uint8_t ap,
|
||||
uint32_t address, uint32_t value);
|
||||
|
||||
/* Synchronous MEM-AP memory mapped bus block transfers */
|
||||
int mem_ap_read(struct adiv5_dap *dap, uint8_t *buffer, uint32_t size,
|
||||
uint32_t count, uint32_t address, bool addrinc);
|
||||
int mem_ap_write(struct adiv5_dap *dap, const uint8_t *buffer, uint32_t size,
|
||||
uint32_t count, uint32_t address, bool addrinc);
|
||||
|
||||
/* Synchronous MEM-AP memory mapped bus block transfers with selection of ap */
|
||||
int mem_ap_sel_read_buf(struct adiv5_dap *swjdp, uint8_t ap,
|
||||
uint8_t *buffer, uint32_t size, uint32_t count, uint32_t address);
|
||||
@@ -464,7 +448,7 @@ int mem_ap_sel_write_buf_noincr(struct adiv5_dap *swjdp, uint8_t ap,
|
||||
const uint8_t *buffer, uint32_t size, uint32_t count, uint32_t address);
|
||||
|
||||
/* Initialisation of the debug system, power domains and registers */
|
||||
int ahbap_debugport_init(struct adiv5_dap *swjdp);
|
||||
int ahbap_debugport_init(struct adiv5_dap *swjdp, uint8_t apsel);
|
||||
|
||||
/* Probe the AP for ROM Table location */
|
||||
int dap_get_debugbase(struct adiv5_dap *dap, int ap,
|
||||
|
||||
Reference in New Issue
Block a user