- change signature for adi_jtag_dp_scan and adi_jtag_dp_scan_u32 to use swjdp_common_t *swjdp instead of arm_jtag_t *jtag_info
- change SWJDP_IR/DR_APACC to DAP_IR/DR_APACC to conform with ARM_ADI docs. - add swjdp->memaccess_tck field and code for extra tck clocks before accessing memory bus - Set default memaccess value to 8 for Cortex-M3. - Add dap memaccess command. - document all armv7 dap cmds. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu]. git-svn-id: svn://svn.berlios.de/openocd/trunk@2005 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#include "register.h"
|
||||
#include "arm_jtag.h"
|
||||
|
||||
#define SWJDP_IR_DPACC 0xA
|
||||
#define SWJDP_IR_APACC 0xB
|
||||
#define DAP_IR_DPACC 0xA
|
||||
#define DAP_IR_APACC 0xB
|
||||
|
||||
#define DPAP_WRITE 0
|
||||
#define DPAP_READ 1
|
||||
@@ -97,6 +97,8 @@ typedef struct swjdp_common_s
|
||||
u8 trans_mode;
|
||||
u8 trans_rw;
|
||||
u8 ack;
|
||||
/* extra tck clocks for memory bus access */
|
||||
u32 memaccess_tck;
|
||||
} swjdp_common_t;
|
||||
|
||||
/* Internal functions used in the module, partial transactions, use with caution */
|
||||
@@ -141,4 +143,6 @@ extern int handle_dap_info_command(struct command_context_s *cmd_ctx, char *cmd,
|
||||
extern int handle_dap_apsel_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
|
||||
extern int handle_dap_apid_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
|
||||
extern int handle_dap_baseaddr_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
|
||||
extern int handle_dap_memaccess_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user