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