summaryrefslogtreecommitdiff
path: root/drivers/usb/isp1760
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2015-02-26 11:47:57 +0000
committerFelipe Balbi <balbi@ti.com>2015-03-09 10:49:46 -0500
commit1998adab1c188076eaf356a8ae28217856f0ee92 (patch)
tree99c06dd1ce50d160b024a145370b7a6ea60eec9a /drivers/usb/isp1760
parent80b4a0f8feeb6ee7fa4430a2b4ae1155ed923bd2 (diff)
downloadlinux-riscv-1998adab1c188076eaf356a8ae28217856f0ee92.tar.gz
linux-riscv-1998adab1c188076eaf356a8ae28217856f0ee92.tar.bz2
linux-riscv-1998adab1c188076eaf356a8ae28217856f0ee92.zip
usb: isp1760: add peripheral/device controller chip id
As per the SAF1761 data sheet[0], the DcChipID register represents the hardware version number (0001h) and the chip ID (1582h) for the Peripheral Controller. However as per the ISP1761 data sheet[1], the DcChipID register represents the hardware version number (0015h) and the chip ID (8210h) for the Peripheral Controller. This patch adds support for both the chip ID values. [0] http://www.nxp.com/documents/data_sheet/SAF1761.pdf [1] http://pdf.datasheetcatalog.com/datasheets2/74/742102_1.pdf Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/isp1760')
-rw-r--r--drivers/usb/isp1760/isp1760-udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c
index 47674f9c6df2..f32c292cc868 100644
--- a/drivers/usb/isp1760/isp1760-udc.c
+++ b/drivers/usb/isp1760/isp1760-udc.c
@@ -1413,7 +1413,7 @@ static int isp1760_udc_init(struct isp1760_udc *udc)
return -ENODEV;
}
- if (chipid != 0x00011582) {
+ if (chipid != 0x00011582 && chipid != 0x00158210) {
dev_err(udc->isp->dev, "udc: invalid chip ID 0x%08x\n", chipid);
return -ENODEV;
}