From 9777d88d5a325c96c566f0ecc471d35752562ab1 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 8 Oct 2010 02:51:27 -0300 Subject: [PATCH] Customize the FT232 EEPROM with the Qi Hardware ID and other parameters. - hw/c2usb.conf: custom FT232 EEPROM configuration - hw/Makefile (flash-eeprom): new target to customize the FT232 EEPROM --- hw/Makefile | 5 ++++- hw/c2usb.conf | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 hw/c2usb.conf diff --git a/hw/Makefile b/hw/Makefile index 86382b9..0ab652d 100644 --- a/hw/Makefile +++ b/hw/Makefile @@ -1,4 +1,4 @@ -.PHONY: all gen generate sch brd xpdf +.PHONY: all gen generate sch brd xpdf flash-eeprom all: @echo "make what ? target: gen sch brd xpdf" @@ -16,3 +16,6 @@ brd: xpdf: xpdf c2usb.pdf + +flash-eeprom: + ftdi_eeprom --flash-eeprom c2usb.conf diff --git a/hw/c2usb.conf b/hw/c2usb.conf new file mode 100644 index 0000000..32b8070 --- /dev/null +++ b/hw/c2usb.conf @@ -0,0 +1,32 @@ +vendor_id=0x20b7 # Vendor ID +product_id=0xc25b # Product ID (tentative) + +max_power=50 # Max. power consumption: value * 2 mA. Use 0 if self_powered = true. + +########### +# Strings # +########### +manufacturer="Qi Hardware" # Manufacturer +product="C2 USB Dongle" # Product +serial="20101008" # Serial + +########### +# Options # +########### +self_powered=false # Turn this off for bus powered +remote_wakeup=false # Turn this on for remote wakeup feature +use_serial=true # Use the serial number string + +# Normally out don't have to change one of these flags +BM_type_chip=true # Newer chips are all BM type +in_is_isochronous=false # In Endpoint is Isochronous +out_is_isochronous=false # Out Endpoint is Isochronous +suspend_pull_downs=false # Enable suspend pull downs for lower power +change_usb_version=false # Change USB Version +usb_version=0x0200 # Only used when change_usb_version is enabled + +######## +# Misc # +######## + +filename="eeprom" # Filename, leave empty to skip file writing