blob: fd6f4109b0e89f6ecc3a7898517f8e72ba21f0ab [file] [log] [blame]
Paul Kocialkowski5d6c2f42015-08-04 17:04:07 +02001#
2# MUSB Controller Driver
3#
4comment "MUSB Controller Driver"
5
6config USB_MUSB_HOST
7 bool "MUSB host mode support"
Alex Kiernanab9e12f2018-04-19 04:32:57 +00008 select SPL_SPRINTF if SPL
9 select TPL_SPRINTF if TPL
Paul Kocialkowski5d6c2f42015-08-04 17:04:07 +020010 help
11 Enables the MUSB USB dual-role controller in host mode.
12
13config USB_MUSB_GADGET
14 bool "MUSB gadget mode support"
Sam Protsenko3457bba2016-04-13 14:20:25 +030015 select USB_GADGET_DUALSPEED
Alex Kiernanab9e12f2018-04-19 04:32:57 +000016 select SPL_SPRINTF if SPL
17 select TPL_SPRINTF if TPL
Paul Kocialkowski5d6c2f42015-08-04 17:04:07 +020018 help
19 Enables the MUSB USB dual-role controller in gadget mode.
Paul Kocialkowski6bed24c2015-08-04 17:04:08 +020020
Adam Ford56083312019-07-10 13:59:10 -050021config 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 N28b8d5f2016-11-17 14:38:08 +053029config USB_MUSB_TI
30 bool "Enable TI OTG USB controller"
31 depends on DM_USB
Alex Kiernan17982a22019-04-18 11:10:50 +000032 select USB_MUSB_DSPS
Mugunthan V N28b8d5f2016-11-17 14:38:08 +053033 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 Ford86362222017-12-29 08:16:05 -060039config USB_MUSB_OMAP2PLUS
40 tristate "OMAP2430 and onwards"
41 depends on ARCH_OMAP2PLUS
42
43config USB_MUSB_AM35X
44 bool "AM35x"
45
46config USB_MUSB_DSPS
47 bool "TI DSPS platforms"
48
Paul Kocialkowski6bed24c2015-08-04 17:04:08 +020049if USB_MUSB_HOST || USB_MUSB_GADGET
mingming lee7d017d62020-01-16 16:11:37 +080050config 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 Kocialkowski6bed24c2015-08-04 17:04:08 +020059
Purna Chandra Mandal03b8e042016-03-21 13:05:42 +053060config 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 Kocialkowski6bed24c2015-08-04 17:04:08 +020067config 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 Goede7806b752015-08-16 11:15:29 +020073 used on almost all sunxi boards.
Paul Kocialkowski6bed24c2015-08-04 17:04:08 +020074
Alex Kiernanad991472019-04-12 10:51:05 +000075config USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
76 bool "Disable MUSB bulk split/combine"
77 default y
78 help
79 On TI AM335x devices, MUSB has bulk split/combine feature enabled
80 in the ConfigData register, but the current MUSB driver does not
81 support it yet. Select this option to disable the feature until the
82 driver adds the support.
83
Paul Kocialkowski6bed24c2015-08-04 17:04:08 +020084endif
Adam Ford86362222017-12-29 08:16:05 -060085
86config USB_MUSB_PIO_ONLY
87 bool "Disable DMA (always use PIO)"
mingming lee7d017d62020-01-16 16:11:37 +080088 default y if USB_MUSB_AM35X || USB_MUSB_PIC32 || USB_MUSB_OMAP2PLUS || USB_MUSB_DSPS || USB_MUSB_SUNXI || USB_MUSB_MT85XX
Adam Ford86362222017-12-29 08:16:05 -060089 help
90 All data is copied between memory and FIFO by the CPU.
91 DMA controllers are ignored.
Andre Przywara1027f282021-05-05 13:51:03 +010092
93config USB_MUSB_FIXED_CONFIGDATA
94 bool "Hardcode MUSB CONFIGDATA register"
95 depends on USB_MUSB_SUNXI
96 default n if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN7I || MACH_SUN8I_A23
97 default y
98 help
99 Newer Allwinner SoCs do not implement the MUSB_CONFIGDATA register,
100 so it always reads 0. Select this option to override this and
101 return a hardcoded value instead.