Paul Kocialkowski | f4865f5 | 2015-08-04 17:04:07 +0200 | [diff] [blame] | 1 | # |
| 2 | # MUSB Controller Driver |
| 3 | # |
| 4 | comment "MUSB Controller Driver" |
| 5 | |
| 6 | config USB_MUSB_HOST |
| 7 | bool "MUSB host mode support" |
Alex Kiernan | 236fc69 | 2018-04-19 04:32:57 +0000 | [diff] [blame] | 8 | select SPL_SPRINTF if SPL |
| 9 | select TPL_SPRINTF if TPL |
Paul Kocialkowski | f4865f5 | 2015-08-04 17:04:07 +0200 | [diff] [blame] | 10 | help |
| 11 | Enables the MUSB USB dual-role controller in host mode. |
| 12 | |
| 13 | config USB_MUSB_GADGET |
| 14 | bool "MUSB gadget mode support" |
Sam Protsenko | b4a0bf7 | 2016-04-13 14:20:25 +0300 | [diff] [blame] | 15 | select USB_GADGET_DUALSPEED |
Alex Kiernan | 236fc69 | 2018-04-19 04:32:57 +0000 | [diff] [blame] | 16 | select SPL_SPRINTF if SPL |
| 17 | select TPL_SPRINTF if TPL |
Paul Kocialkowski | f4865f5 | 2015-08-04 17:04:07 +0200 | [diff] [blame] | 18 | help |
| 19 | Enables the MUSB USB dual-role controller in gadget mode. |
Paul Kocialkowski | e16ab87 | 2015-08-04 17:04:08 +0200 | [diff] [blame] | 20 | |
Adam Ford | b894d87 | 2019-07-10 13:59:10 -0500 | [diff] [blame] | 21 | config USB_MUSB_DA8XX |
| 22 | bool "Enable DA8xx MUSB Controller" |
| 23 | depends on DM_USB |
| 24 | help |
| 25 | Say y here to enable support for the dual role high |
| 26 | speed USB controller based on the Mentor Graphics |
| 27 | silicon IP. |
| 28 | |
Mugunthan V N | 5b5479c | 2016-11-17 14:38:08 +0530 | [diff] [blame] | 29 | config USB_MUSB_TI |
| 30 | bool "Enable TI OTG USB controller" |
| 31 | depends on DM_USB |
Alex Kiernan | e8d02b6 | 2019-04-18 11:10:50 +0000 | [diff] [blame] | 32 | select USB_MUSB_DSPS |
Mugunthan V N | 5b5479c | 2016-11-17 14:38:08 +0530 | [diff] [blame] | 33 | default n |
| 34 | help |
| 35 | Say y here to enable support for the dual role high |
| 36 | speed USB controller based on the Mentor Graphics |
| 37 | silicon IP. |
| 38 | |
Adam Ford | 9d3e6c3 | 2017-12-29 08:16:05 -0600 | [diff] [blame] | 39 | config USB_MUSB_OMAP2PLUS |
| 40 | tristate "OMAP2430 and onwards" |
| 41 | depends on ARCH_OMAP2PLUS |
| 42 | |
| 43 | config USB_MUSB_AM35X |
| 44 | bool "AM35x" |
| 45 | |
| 46 | config USB_MUSB_DSPS |
| 47 | bool "TI DSPS platforms" |
| 48 | |
Paul Kocialkowski | e16ab87 | 2015-08-04 17:04:08 +0200 | [diff] [blame] | 49 | if USB_MUSB_HOST || USB_MUSB_GADGET |
developer | 64800e0 | 2020-01-16 16:11:37 +0800 | [diff] [blame] | 50 | config USB_MUSB_MT85XX |
| 51 | bool "Enable Mediatek MT85XX DRC USB controller" |
| 52 | depends on DM_USB && ARCH_MEDIATEK |
| 53 | default n |
| 54 | help |
| 55 | Say y to enable Mediatek MT85XX USB DRC controller support |
| 56 | if it is available on your Mediatek MUSB IP based platform. |
| 57 | DMA controllers are ignored. This driver follow musb-new |
| 58 | driver and usb gadget framework. |
Paul Kocialkowski | e16ab87 | 2015-08-04 17:04:08 +0200 | [diff] [blame] | 59 | |
Purna Chandra Mandal | 05bc3f4 | 2016-03-21 13:05:42 +0530 | [diff] [blame] | 60 | config USB_MUSB_PIC32 |
| 61 | bool "Enable Microchip PIC32 DRC USB controller" |
| 62 | depends on DM_USB && MACH_PIC32 |
| 63 | help |
| 64 | Say y to enable PIC32 USB DRC controller support |
| 65 | if it is available on your Microchip PIC32 platform. |
| 66 | |
Paul Kocialkowski | e16ab87 | 2015-08-04 17:04:08 +0200 | [diff] [blame] | 67 | config USB_MUSB_SUNXI |
| 68 | bool "Enable sunxi OTG / DRC USB controller" |
| 69 | depends on ARCH_SUNXI |
| 70 | default y |
| 71 | ---help--- |
| 72 | Say y here to enable support for the sunxi OTG / DRC USB controller |
Hans de Goede | da6c37b | 2015-08-16 11:15:29 +0200 | [diff] [blame] | 73 | used on almost all sunxi boards. |
Paul Kocialkowski | e16ab87 | 2015-08-04 17:04:08 +0200 | [diff] [blame] | 74 | |
Stephan Gerhold | d251959 | 2021-07-08 20:33:50 +0200 | [diff] [blame^] | 75 | config USB_MUSB_UX500 |
| 76 | bool "Enable ST-Ericsson Ux500 USB controller" |
| 77 | depends on DM_USB && DM_USB_GADGET && ARCH_U8500 |
| 78 | default y |
| 79 | help |
| 80 | Say y to enable support for the MUSB OTG USB controller used in |
| 81 | ST-Ericsson Ux500. The driver supports either gadget or host mode |
| 82 | based on the selection of CONFIG_USB_MUSB_HOST. |
| 83 | |
Alex Kiernan | e1269f4 | 2019-04-12 10:51:05 +0000 | [diff] [blame] | 84 | config USB_MUSB_DISABLE_BULK_COMBINE_SPLIT |
| 85 | bool "Disable MUSB bulk split/combine" |
| 86 | default y |
| 87 | help |
| 88 | On TI AM335x devices, MUSB has bulk split/combine feature enabled |
| 89 | in the ConfigData register, but the current MUSB driver does not |
| 90 | support it yet. Select this option to disable the feature until the |
| 91 | driver adds the support. |
| 92 | |
Paul Kocialkowski | e16ab87 | 2015-08-04 17:04:08 +0200 | [diff] [blame] | 93 | endif |
Adam Ford | 9d3e6c3 | 2017-12-29 08:16:05 -0600 | [diff] [blame] | 94 | |
| 95 | config USB_MUSB_PIO_ONLY |
| 96 | bool "Disable DMA (always use PIO)" |
Stephan Gerhold | d251959 | 2021-07-08 20:33:50 +0200 | [diff] [blame^] | 97 | default y if USB_MUSB_AM35X || USB_MUSB_PIC32 || USB_MUSB_OMAP2PLUS || USB_MUSB_DSPS || USB_MUSB_SUNXI || USB_MUSB_MT85XX || USB_MUSB_UX500 |
Adam Ford | 9d3e6c3 | 2017-12-29 08:16:05 -0600 | [diff] [blame] | 98 | help |
| 99 | All data is copied between memory and FIFO by the CPU. |
| 100 | DMA controllers are ignored. |
Andre Przywara | 9b28e5a | 2021-05-05 13:51:03 +0100 | [diff] [blame] | 101 | |
| 102 | config USB_MUSB_FIXED_CONFIGDATA |
| 103 | bool "Hardcode MUSB CONFIGDATA register" |
| 104 | depends on USB_MUSB_SUNXI |
| 105 | default n if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN7I || MACH_SUN8I_A23 |
| 106 | default y |
| 107 | help |
| 108 | Newer Allwinner SoCs do not implement the MUSB_CONFIGDATA register, |
| 109 | so it always reads 0. Select this option to override this and |
| 110 | return a hardcoded value instead. |