From 02e4a740e847307c069bf0f58b24c72d6f239183 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 10 Sep 2010 00:24:00 +0200 Subject: [PATCH] Evaluate eeprom Byte 0 Bit 7: Suspend on DBUS7 low --- src/ftdi.c | 2 ++ src/ftdi.h | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index 355ea58..5ab9bfc 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2518,6 +2518,8 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, eeprom->channel_b_driver = buf[0x01] & DRIVER_VCP; eeprom->high_current_b = buf[0x01] & HIGH_CURRENT_DRIVE; + eeprom->suspend_dbus7 = buf[0x01] & SUSPEND_DBUS7; + // Addr 02: Vendor ID eeprom->vendor_id = buf[0x02] + (buf[0x03] << 8); diff --git a/src/ftdi.h b/src/ftdi.h index 2f6402a..281c261 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -185,6 +185,9 @@ struct ftdi_eeprom /** release */ int release; + /* Suspend on DBUS7 Low */ + int suspend_dbus7; + /** input in isochronous transfer mode */ int in_is_isochronous; /** output in isochronous transfer mode */ @@ -382,6 +385,8 @@ struct ftdi_device_list /** Driver Type. */ #define DRIVER_VCP 0x08 +#define SUSPEND_DBUS7 0x80 + /** High current drive. */ #define HIGH_CURRENT_DRIVE 0x10 -- 1.7.1