[flashrom] [PATCH 3/5] ft2232_spi: allow CLOCK_X5 to be set at runtime
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Sat Nov 13 05:33:56 CET 2010
On 12.11.2010 13:44, Joerg Mayer wrote:
> On Fri, Nov 12, 2010 at 12:52:14PM +0100, Carl-Daniel Hailfinger wrote:
>
> #if (defined TYPE_2232H and defined TYPE_4232H)
>
>>> + if (ftdic->type != TYPE_2232H && ftdic->type != TYPE_4232H) {
>>> + msg_pdbg("FTDI chip type %d is not high-speed\n",
>>> + ftdic->type);
>>> + clock_5x = 0;
>>> + }
>>>
> #endif
>
That doesn't work because TYPE_2232H is an enum.
>> TYPE_2232H and TYPE_4232H are not defined before libftdi 0.16.
>>
>> Do you have any idea how to work around this except requiring a newer
>> libftdi?
>>
>
> You'll just need to figure out the correct syntax :-)
>
Any other ideas?
Regards,
Carl-Daniel
--
http://www.hailfinger.org/
More information about the flashrom
mailing list