Greg Kroah-Hartman | cae8dc3 | 2019-01-17 09:23:50 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | |
Laurent Pinchart | 7ef077a | 2015-01-21 00:56:02 +0200 | [diff] [blame] | 3 | config USB_ISP1760 |
| 4 | tristate "NXP ISP 1760/1761 support" |
Laurent Pinchart | 100832a | 2015-01-21 00:56:03 +0200 | [diff] [blame] | 5 | depends on USB || USB_GADGET |
Laurent Pinchart | 7ef077a | 2015-01-21 00:56:02 +0200 | [diff] [blame] | 6 | help |
| 7 | Say Y or M here if your system as an ISP1760 USB host controller |
| 8 | or an ISP1761 USB dual-role controller. |
| 9 | |
| 10 | This driver does not support isochronous transfers or OTG. |
| 11 | This USB controller is usually attached to a non-DMA-Master |
| 12 | capable bus. NXP's eval kit brings this chip on PCI card |
| 13 | where the chip itself is behind a PLB to simulate such |
| 14 | a bus. |
| 15 | |
| 16 | To compile this driver as a module, choose M here: the |
| 17 | module will be called isp1760. |
| 18 | |
Laurent Pinchart | 100832a | 2015-01-21 00:56:03 +0200 | [diff] [blame] | 19 | config USB_ISP1760_HCD |
| 20 | bool |
| 21 | |
Laurent Pinchart | 7ef077a | 2015-01-21 00:56:02 +0200 | [diff] [blame] | 22 | config USB_ISP1761_UDC |
Laurent Pinchart | 100832a | 2015-01-21 00:56:03 +0200 | [diff] [blame] | 23 | bool |
| 24 | |
| 25 | if USB_ISP1760 |
| 26 | |
| 27 | choice |
| 28 | bool "ISP1760 Mode Selection" |
| 29 | default USB_ISP1760_DUAL_ROLE if (USB && USB_GADGET) |
| 30 | default USB_ISP1760_HOST_ROLE if (USB && !USB_GADGET) |
| 31 | default USB_ISP1760_GADGET_ROLE if (!USB && USB_GADGET) |
| 32 | |
| 33 | config USB_ISP1760_HOST_ROLE |
| 34 | bool "Host only mode" |
| 35 | depends on USB=y || USB=USB_ISP1760 |
| 36 | select USB_ISP1760_HCD |
Laurent Pinchart | 7ef077a | 2015-01-21 00:56:02 +0200 | [diff] [blame] | 37 | help |
Laurent Pinchart | 100832a | 2015-01-21 00:56:03 +0200 | [diff] [blame] | 38 | Select this if you want to use the ISP1760 in host mode only. The |
| 39 | gadget function will be disabled. |
| 40 | |
| 41 | config USB_ISP1760_GADGET_ROLE |
| 42 | bool "Gadget only mode" |
| 43 | depends on USB_GADGET=y || USB_GADGET=USB_ISP1760 |
| 44 | select USB_ISP1761_UDC |
| 45 | help |
| 46 | Select this if you want to use the ISP1760 in peripheral mode only. |
| 47 | The host function will be disabled. |
| 48 | |
| 49 | config USB_ISP1760_DUAL_ROLE |
| 50 | bool "Dual Role mode" |
| 51 | depends on USB=y || USB=USB_ISP1760 |
| 52 | depends on USB_GADGET=y || USB_GADGET=USB_ISP1760 |
| 53 | select USB_ISP1760_HCD |
| 54 | select USB_ISP1761_UDC |
| 55 | help |
| 56 | Select this if you want to use the ISP1760 in both host and |
| 57 | peripheral modes. |
| 58 | |
| 59 | endchoice |
| 60 | |
| 61 | endif |