26 #if defined(CONFIG_USB_EHCI_HCD) || defined(CONFIG_USB_GADGET)
40 #if defined(CONFIG_USB_EHCI_HCD)
41 static struct resource msp_usbhost0_resources[] = {
64 static u64 msp_usbhost0_dma_mask = 0xffffffff
UL;
68 .name =
"pmcmsp-ehci",
71 .dma_mask = &msp_usbhost0_dma_mask,
72 .coherent_dma_mask = 0xffffffff
UL,
74 .num_resources =
ARRAY_SIZE(msp_usbhost0_resources),
75 .resource = msp_usbhost0_resources,
80 #ifdef CONFIG_MSP_HAS_DUAL_USB
81 static u64 msp_usbhost1_dma_mask = 0xffffffff
UL;
83 static struct resource msp_usbhost1_resources[] = {
108 .name =
"pmcmsp-ehci",
111 .dma_mask = &msp_usbhost1_dma_mask,
112 .coherent_dma_mask = 0xffffffff
UL,
114 .num_resources =
ARRAY_SIZE(msp_usbhost1_resources),
115 .resource = msp_usbhost1_resources,
121 #if defined(CONFIG_USB_GADGET)
122 static struct resource msp_usbdev0_resources[] = {
145 static u64 msp_usbdev_dma_mask = 0xffffffff
UL;
150 .name =
"msp71xx_udc",
153 .dma_mask = &msp_usbdev_dma_mask,
154 .coherent_dma_mask = 0xffffffff
UL,
156 .num_resources =
ARRAY_SIZE(msp_usbdev0_resources),
157 .resource = msp_usbdev0_resources,
161 #ifdef CONFIG_MSP_HAS_DUAL_USB
162 static struct resource msp_usbdev1_resources[] = {
188 .name =
"msp71xx_udc",
191 .dma_mask = &msp_usbdev_dma_mask,
192 .coherent_dma_mask = 0xffffffff
UL,
194 .num_resources =
ARRAY_SIZE(msp_usbdev1_resources),
195 .resource = msp_usbdev1_resources,
202 static int __init msp_usb_setup(
void)
217 snprintf((
char *)&envstr[0],
sizeof(envstr),
"usbmode");
226 if (!
strcmp(strp,
"device"))
231 #if defined(CONFIG_USB_EHCI_HCD)
232 msp_devs[0] = &msp_usbhost0_device.
dev;
233 ppfinit(
"platform add USB HOST done %s.\n", msp_devs[0]->
name);
234 #ifdef CONFIG_MSP_HAS_DUAL_USB
235 msp_devs[1] = &msp_usbhost1_device.
dev;
236 ppfinit(
"platform add USB HOST done %s.\n", msp_devs[1]->
name);
239 ppfinit(
"%s: echi_hcd not supported\n", __FILE__);
242 #if defined(CONFIG_USB_GADGET)
244 msp_devs[0] = &msp_usbdev0_device.
dev;
245 ppfinit(
"platform add USB DEVICE done %s.\n"
246 , msp_devs[0]->
name);
247 #ifdef CONFIG_MSP_HAS_DUAL_USB
248 msp_devs[1] = &msp_usbdev1_device.
dev;
249 ppfinit(
"platform add USB DEVICE done %s.\n"
250 , msp_devs[1]->
name);
253 ppfinit(
"%s: usb_gadget not supported\n", __FILE__);