From a7e053532fb66aabe0d232cb335be4746cc052b3 Mon Sep 17 00:00:00 2001 From: Davide Michelizza Date: Wed, 23 Oct 2013 16:01:55 +0200 Subject: [PATCH] Fix FT232H eeprom suspend pulldown setting --- src/ftdi.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index 26b1707..90dfae5 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -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 -- 1.7.1