]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Say if chip is old FX2 or FX2LP
authorAlexandru Gagniuc <redacted>
Sun, 6 Jan 2013 15:31:30 +0000 (09:31 -0600)
committerUwe Hermann <redacted>
Tue, 8 Jan 2013 02:44:36 +0000 (03:44 +0100)
Look at the extracted REVID, and print out if it is an FX2 (non-LP), or FX2LP.

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/fx2lafw/fx2lafw.c

index da72399c2230786d99a89ee68733da0846e9cba4..19f079b8d69775e527610b8cec1e1bb04c0076d5 100644 (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;
        }