fx2lafw: Say if chip is old FX2 or FX2LP

Look at the extracted REVID, and print out if it is an FX2 (non-LP), or FX2LP.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Alexandru Gagniuc 2013-01-06 09:31:30 -06:00 committed by Uwe Hermann
parent a24e9d0484
commit cbc80f8f8a
1 changed files with 5 additions and 2 deletions

View File

@ -267,9 +267,12 @@ static int fx2lafw_dev_open(struct sr_dev_inst *sdi)
sdi->status = SR_ST_ACTIVE;
sr_info("Opened device %d on %d.%d, "
"interface %d, firmware %d.%d, REVID %d.",
"interface %d, firmware %d.%d.",
sdi->index, devc->usb->bus, devc->usb->address,
USB_INTERFACE, vi.major, vi.minor, revid);
USB_INTERFACE, vi.major, vi.minor);
sr_info("Detected REVID=%d, it's a Cypress CY7C68013%s.",
revid, (revid != 1) ? " (FX2)" : "A (FX2LP)");
break;
}