additional fixes

Change-Id: I5ebe907b3c35107e5a50cbc65835aca75e617c41
This commit is contained in:
Eric Wild 2019-11-05 19:07:13 +01:00
parent 02ca0e9df7
commit 231b9affb1
2 changed files with 3 additions and 4 deletions

View File

@ -1085,7 +1085,7 @@ static uint32_t clock_freqs[] = {
};
static uint32_t data_rates[] = {
9600
6720
};
extern struct usb_desc_collection usb_fs_descs;

View File

@ -136,18 +136,17 @@ const struct usb_desc_collection usb_fs_descs = {
.bcdCCID = LE16(0x0110),
.bMaxSlotIndex = 7,
.bVoltageSupport = 0x07, /* 5/3/1.8V */
// .dwProtocols = 0x03,
.dwProtocols = 0x01,
.dwDefaultClock = LE32(2500),
.dwMaximumClock = LE32(20000),
.bNumClockSupported = CCID_NUM_CLK_SUPPORTED,
.dwDataRate = LE32(9600),
.dwDataRate = LE32(6720), // default clock 2.5M/372
.dwMaxDataRate = LE32(921600),
.bNumDataRatesSupported = 0,
.dwMaxIFSD = LE32(0),
.dwSynchProtocols = LE32(0),
.dwMechanical = LE32(0),
.dwFeatures = LE32(0x10 | 0x00010080),
.dwFeatures = LE32(0x10 | 0x20 | 0x80 | 0x00010000),
// .dwFeatures = LE32(0x2 | 0x40),
.dwMaxCCIDMessageLength = 272,
.bClassGetResponse = 0xff,