jtag: Add verbosity about devices found.
This commit is contained in:
parent
0a7bfd5923
commit
dd6aadc54d
|
@ -43,6 +43,8 @@ jtag_dev_descr_t dev_descr[] = {
|
|||
.descr = "ST Microelectronics: STM32, Value Line, High density."},
|
||||
{.idcode = 0x06411041, .idmask = 0xFFFFFFFF,
|
||||
.descr = "ST Microelectronics: STM32F2xx."},
|
||||
{.idcode = 0x06422041, .idmask = 0xFFFFFFFF,
|
||||
.descr = "ST Microelectronics: STM32F3xx."},
|
||||
{.idcode = 0x06413041 , .idmask = 0xFFFFFFFF,
|
||||
.descr = "ST Microelectronics: STM32F4xx."},
|
||||
{.idcode = 0x0BB11477 , .idmask = 0xFFFFFFFF,
|
||||
|
|
|
@ -191,6 +191,18 @@ int jtag_scan(const uint8_t *irlens)
|
|||
/*Transfer needed device information to firmware jtag_devs*/
|
||||
for(i = 0; i < jtag_dev_count; i++)
|
||||
platform_add_jtag_dev(i, &jtag_devs[i]);
|
||||
for(i = 0; i < jtag_dev_count; i++) {
|
||||
DEBUG_INFO("Idcode 0x%08" PRIx32, jtag_devs[i].jd_idcode);
|
||||
for(j = 0; dev_descr[j].idcode; j++) {
|
||||
if((jtag_devs[i].jd_idcode & dev_descr[j].idmask) ==
|
||||
dev_descr[j].idcode) {
|
||||
DEBUG_INFO(": %s",
|
||||
(dev_descr[j].descr) ? dev_descr[j].descr : "unknown");
|
||||
break;
|
||||
}
|
||||
}
|
||||
DEBUG_INFO("\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Check for known devices and handle accordingly */
|
||||
|
|
Loading…
Reference in New Issue