adiv5: Only force cortexm_probe() once.
This commit is contained in:
parent
489f24584b
commit
da75acf015
@ -469,11 +469,12 @@ void adiv5_dp_init(ADIv5_DP_t *dp)
|
|||||||
* AP should be unref'd if not valid.
|
* AP should be unref'd if not valid.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The rest sould only be added after checking ROM table */
|
/* The rest should only be added after checking ROM table */
|
||||||
probed |= adiv5_component_probe(ap, ap->base);
|
probed |= adiv5_component_probe(ap, ap->base);
|
||||||
if (!probed && (dp->idcode & 0xfff) == 0x477) {
|
if (!probed && (dp->idcode & 0xfff) == 0x477) {
|
||||||
DEBUG("-> cortexm_probe forced\n");
|
DEBUG("-> cortexm_probe forced\n");
|
||||||
cortexm_probe(ap);
|
cortexm_probe(ap);
|
||||||
|
probed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
adiv5_dp_unref(dp);
|
adiv5_dp_unref(dp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user