From 6e6a1c3fab17eceb680cae1b01d027030ed1e728 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Wed, 15 Sep 2010 17:31:01 +0200 Subject: [PATCH] FT2232H: Handle suspend_pull_downs when encoding --- src/ftdi.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index 61b7a75..16af24e 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2586,6 +2586,11 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi) else output[0x01] &= ~SUSPEND_DBUS7; + if (eeprom->suspend_pull_downs == 1) + output[0x0A] |= 0x4; + else + output[0x0A] &= ~0x4; + if(eeprom->group0_drive > DRIVE_16MA) output[0x0c] |= DRIVE_16MA; else -- 1.7.1