adiv5_swdp: Implemented clock tristating for adiv5_swdp_scan
This commit is contained in:
parent
c847007008
commit
6b5c492bc7
|
@ -266,6 +266,7 @@ bool cmd_swdp_scan(target *t, int argc, const char **argv)
|
|||
}
|
||||
|
||||
if (devs == 0) {
|
||||
platform_target_clk_output_enable(false);
|
||||
platform_nrst_set_val(false);
|
||||
gdb_out("SW-DP scan failed!\n");
|
||||
return false;
|
||||
|
|
|
@ -89,6 +89,7 @@ uint32_t adiv5_swdp_scan(uint32_t targetid)
|
|||
if (swdptap_init(initial_dp))
|
||||
return 0;
|
||||
|
||||
platform_target_clk_output_enable(true);
|
||||
/* DORMANT-> SWD sequence*/
|
||||
initial_dp->seq_out(0xFFFFFFFF, 32);
|
||||
initial_dp->seq_out(0xFFFFFFFF, 32);
|
||||
|
|
Loading…
Reference in New Issue