From: Alexandru Gagniuc Date: Sun, 6 Jan 2013 15:31:30 +0000 (-0600) Subject: fx2lafw: Say if chip is old FX2 or FX2LP X-Git-Tag: dsupstream~360 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cbc80f8f8afe28ff825449deffcc5aca7b51d7b8;p=libsigrok.git 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 --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index da72399c..19f079b8 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -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; }