Fix FT232H eeprom suspend pulldown setting
authorDavide Michelizza <dmichelizza@gmail.com>
Wed, 23 Oct 2013 14:01:55 +0000 (16:01 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 23 Oct 2013 14:01:55 +0000 (16:01 +0200)
src/ftdi.c

index 26b1707..90dfae5 100644 (file)
@@ -3015,6 +3015,12 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi)
                 output[0x01] |= POWER_SAVE_DISABLE_H;
             else
                 output[0x01] &= ~POWER_SAVE_DISABLE_H;
+
+            if (eeprom->suspend_pull_downs)
+                output[0x0a] |= 0x4;
+            else
+                output[0x0a] &= ~0x4;
+
             if (eeprom->clock_polarity)
                 output[0x01] |= FT1284_CLK_IDLE_STATE;
             else