ADIv5 clean up AP selection and register caching
Handling of AP (and AP register bank) selection, and cached AP registers, is pretty loose ... start tightening it: - It's "AP bank" select support ... there are no DP banks. Rename. + dap_dp_bankselect() becomes dap_ap_bankselect() + "dp_select_value" struct field becomes "ap_bank_value" - Remove duplicate AP cache init paths ... only use dap_ap_select(), and don't make Cortex (A8 or M3) cores roll their own code. - For dap_ap_bankselect(), pass up any fault code from writing the SELECT register. (Nothing yet checks those codes.) - Add various bits of Doxygen Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
@@ -1848,12 +1848,11 @@ static int cortex_m3_init_arch_info(struct target *target,
|
||||
cortex_m3->jtag_info.tap = tap;
|
||||
cortex_m3->jtag_info.scann_size = 4;
|
||||
|
||||
armv7m->swjdp_info.dp_select_value = -1;
|
||||
armv7m->swjdp_info.ap_csw_value = -1;
|
||||
armv7m->swjdp_info.ap_tar_value = -1;
|
||||
/* Leave (only) generic DAP stuff for debugport_init(); */
|
||||
armv7m->swjdp_info.jtag_info = &cortex_m3->jtag_info;
|
||||
armv7m->swjdp_info.memaccess_tck = 8;
|
||||
armv7m->swjdp_info.tar_autoincr_block = (1 << 12); /* Cortex-M3 has 4096 bytes autoincrement range */
|
||||
/* Cortex-M3 has 4096 bytes autoincrement range */
|
||||
armv7m->swjdp_info.tar_autoincr_block = (1 << 12);
|
||||
|
||||
/* register arch-specific functions */
|
||||
armv7m->examine_debug_reason = cortex_m3_examine_debug_reason;
|
||||
|
||||
Reference in New Issue
Block a user