Add group 0 & 1 options to ftdi_eeprom, and fix group1 eeprom offset for ft232h ft232h-group1
authorBrian Gomes Bascoy <brian@recursive.fun>
Tue, 30 Aug 2022 15:15:00 +0000 (17:15 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 30 Aug 2022 15:15:31 +0000 (17:15 +0200)
commitae9aea38274a92aec582a34aebd9db6ea554cc3c
tree70fc78a210898ef56c3f844a57675e95954c46d5
parentb5b8fab6063ad90bb5ef05a72708ecde1796bc81
Add group 0 & 1 options to ftdi_eeprom, and fix group1 eeprom offset for ft232h

This is a WIP patch for ftdi_eeprom that adds support for drive,
slew and schmitt settings for both ADBUS and ACBUS on the ft232h (currently
only group0_drive exists). I also changed the offset used for the group1
settings in ftdi.c: The eeprom (with stock configuration) of my um232h seems
to have the same memory map used in the 2232h and 4232h for these settings.

The factory defaults are:

group0_drive=8MA
group0_slew=false
group0_schmitt=false
group1_drive=8MA
group1_slew=false
group1_schmitt=false

Signed-off-by: Brian Gomes Bascoy (pera) <brian@recursive.fun>
ftdi_eeprom/main.c
src/ftdi.c