From cbc80f8f8afe28ff825449deffcc5aca7b51d7b8 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sun, 6 Jan 2013 09:31:30 -0600 Subject: [PATCH] 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 --- hardware/fx2lafw/fx2lafw.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }