On Thu, Dec 30, 2010 at 11:54 AM, Marek Vasut <marek.va...@gmail.com> wrote:
>  } broken_cpus[] = {
> -       { 0x80000000, 0x04770002, 0x60000000, "imx51" },
> +       { 0x80000000, 0x04770002, 0x1ba00477, 0x60000000, "imx51" },

Hi Marek,
your patch goes in the right direction, but I think there is a mistake.

You compare the JTAG idcode with 0x1ba00477.
This value belongs to ARM debug port, not to TI or Freescale devices.

Please check ARM documentation
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0314h/DDI0314H_coresight_components_trm.pdf
at pages 2-27 and 2-28 regarding the IDCODE.
Also, "grep 00477" in openocd code, and you will find many devices
with same JTAG idcode or just different version.

So, even with your patch, we can still confuse some device with the
broken imx51.

In the same document from ARM, in table 2-6 page 2-26, there is the
list of DAP registers.
One register could be interesting for your purpose, TARGETID, that I
expect has a unique idcode from the device manufacturer.
But, the document reports it is available in SW-DP only, not in JTAG-DP.

I have no idea what could be the right check to run.

Best Regards,
Antonio Borneo
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to