Support for the generic vendorid/productid of the NXP chip.

This commit is contained in:
Romuald Conty 2009-11-20 15:37:07 +00:00
parent 5dc68e68ca
commit 790fc0da1e

View file

@ -80,8 +80,10 @@ static void get_end_points(struct usb_device *dev, dev_spec_pn533* pdsp)
dev_info* pn533_connect(const nfc_device_desc_t* pndd)
{
int idvendor = 0x04e6;
int idproduct = 0x5591;
int idvendor = 0x04cc;
int idproduct = 0x2533;
int idvendor_alt = 0x04e6;
int idproduct_alt = 0x5591;
struct usb_bus *bus;
struct usb_device *dev;
dev_info* pdi = INVALID_DEVICE_INFO;
@ -108,7 +110,8 @@ dev_info* pn533_connect(const nfc_device_desc_t* pndd)
{
for (dev = bus->devices; dev; dev = dev->next)
{
if (idvendor==dev->descriptor.idVendor && idproduct==dev->descriptor.idProduct)
if ((idvendor==dev->descriptor.idVendor && idproduct==dev->descriptor.idProduct) ||
(idvendor_alt==dev->descriptor.idVendor && idproduct_alt==dev->descriptor.idProduct))
{
// Make sure there are 2 endpoints available
if (dev->config->interface->altsetting->bNumEndpoints < 2) return pdi;