Lines Matching +full:usb +full:- +full:port +full:- +full:id

15 #include <linux/dma-mapping.h>
21 #include <linux/usb/ehci_pdriver.h>
22 #include <linux/usb/ohci_pdriver.h>
24 #include <asm/mach-au1x00/au1000.h>
25 #include <asm/mach-au1x00/au1xxx_dbdma.h>
26 #include <asm/mach-au1x00/au1100_mmc.h>
27 #include <asm/mach-au1x00/au1xxx_eth.h>
31 static void alchemy_8250_pm(struct uart_port *port, unsigned int state, in alchemy_8250_pm() argument
37 alchemy_uart_enable(CPHYSADDR(port->membase)); in alchemy_8250_pm()
38 serial8250_do_pm(port, state, old_state); in alchemy_8250_pm()
41 serial8250_do_pm(port, state, old_state); in alchemy_8250_pm()
42 alchemy_uart_disable(CPHYSADDR(port->membase)); in alchemy_8250_pm()
45 serial8250_do_pm(port, state, old_state); in alchemy_8250_pm()
51 #define PORT(_base, _irq) \ macro
65 PORT(AU1000_UART0_PHYS_ADDR, AU1000_UART0_INT),
66 PORT(AU1000_UART1_PHYS_ADDR, AU1000_UART1_INT),
67 PORT(AU1000_UART2_PHYS_ADDR, AU1000_UART2_INT),
68 PORT(AU1000_UART3_PHYS_ADDR, AU1000_UART3_INT),
71 PORT(AU1000_UART0_PHYS_ADDR, AU1500_UART0_INT),
72 PORT(AU1000_UART3_PHYS_ADDR, AU1500_UART3_INT),
75 PORT(AU1000_UART0_PHYS_ADDR, AU1100_UART0_INT),
76 PORT(AU1000_UART1_PHYS_ADDR, AU1100_UART1_INT),
77 PORT(AU1000_UART3_PHYS_ADDR, AU1100_UART3_INT),
80 PORT(AU1000_UART0_PHYS_ADDR, AU1550_UART0_INT),
81 PORT(AU1000_UART1_PHYS_ADDR, AU1550_UART1_INT),
82 PORT(AU1000_UART3_PHYS_ADDR, AU1550_UART3_INT),
85 PORT(AU1000_UART0_PHYS_ADDR, AU1200_UART0_INT),
86 PORT(AU1000_UART1_PHYS_ADDR, AU1200_UART1_INT),
89 PORT(AU1300_UART0_PHYS_ADDR, AU1300_UART0_INT),
90 PORT(AU1300_UART1_PHYS_ADDR, AU1300_UART1_INT),
91 PORT(AU1300_UART2_PHYS_ADDR, AU1300_UART2_INT),
92 PORT(AU1300_UART3_PHYS_ADDR, AU1300_UART3_INT),
98 .id = PLAT8250_DEV_AU1X00,
160 unit = (pdev->id == 1) ? in alchemy_ohci_power_on()
171 unit = (pdev->id == 1) ? in alchemy_ohci_power_off()
201 return -ENOMEM; in _new_usbres()
205 return -ENOMEM; in _new_usbres()
208 (*d)->dev.coherent_dma_mask = DMA_BIT_MASK(32); in _new_usbres()
209 (*d)->num_resources = 2; in _new_usbres()
210 (*d)->resource = *r; in _new_usbres()
225 res[0].end = res[0].start + 0x100 - 1; in alchemy_setup_usb()
230 pdev->name = "ohci-platform"; in alchemy_setup_usb()
231 pdev->id = 0; in alchemy_setup_usb()
232 pdev->dev.dma_mask = &alchemy_all_dmamask; in alchemy_setup_usb()
233 pdev->dev.platform_data = &alchemy_ohci_pdata; in alchemy_setup_usb()
236 printk(KERN_INFO "Alchemy USB: cannot add OHCI0\n"); in alchemy_setup_usb()
245 res[0].end = res[0].start + 0x100 - 1; in alchemy_setup_usb()
250 pdev->name = "ehci-platform"; in alchemy_setup_usb()
251 pdev->id = 0; in alchemy_setup_usb()
252 pdev->dev.dma_mask = &alchemy_all_dmamask; in alchemy_setup_usb()
253 pdev->dev.platform_data = &alchemy_ehci_pdata; in alchemy_setup_usb()
256 printk(KERN_INFO "Alchemy USB: cannot add EHCI0\n"); in alchemy_setup_usb()
265 res[0].end = res[0].start + 0x100 - 1; in alchemy_setup_usb()
270 pdev->name = "ohci-platform"; in alchemy_setup_usb()
271 pdev->id = 1; in alchemy_setup_usb()
272 pdev->dev.dma_mask = &alchemy_all_dmamask; in alchemy_setup_usb()
273 pdev->dev.platform_data = &alchemy_ohci_pdata; in alchemy_setup_usb()
276 printk(KERN_INFO "Alchemy USB: cannot add OHCI1\n"); in alchemy_setup_usb()
336 .name = "au1000-eth",
337 .id = 0,
372 .name = "au1000-eth",
373 .id = 1,
382 void __init au1xxx_override_eth_cfg(unsigned int port, in au1xxx_override_eth_cfg() argument
385 if (!eth_data || port > 1) in au1xxx_override_eth_cfg()
388 if (port == 0) in au1xxx_override_eth_cfg()