Lines Matching +full:0 +full:x1e0

38 #define USB_BCMA_CLKCTLST_USB_CLK_REQ			0x00000100
56 for (i = 0; i < timeout; i++) { in bcma_wait_bits()
59 return 0; in bcma_wait_bits()
70 if (dev->bus->chipinfo.id == 0x4716) { in bcma_hcd_4716wa()
75 tmp = 0x1846b; /* set CDR to 0x11(fast) */ in bcma_hcd_4716wa()
77 tmp = 0x1046b; /* set CDR to 0x10(slow) */ in bcma_hcd_4716wa()
79 tmp = 0; in bcma_hcd_4716wa()
85 bcma_write32(dev, 0x524, 0x1); /* write sel to enable */ in bcma_hcd_4716wa()
88 bcma_write32(dev, 0x524, tmp); in bcma_hcd_4716wa()
90 bcma_write32(dev, 0x524, 0x4ab); in bcma_hcd_4716wa()
92 bcma_read32(dev, 0x528); in bcma_hcd_4716wa()
93 bcma_write32(dev, 0x528, 0x80000000); in bcma_hcd_4716wa()
115 bcma_core_enable(dev, 0); in bcma_hcd_init_chip_mips()
119 tmp = bcma_read32(dev, 0x1e0); in bcma_hcd_init_chip_mips()
120 tmp |= 0x100; in bcma_hcd_init_chip_mips()
121 bcma_write32(dev, 0x1e0, tmp); in bcma_hcd_init_chip_mips()
122 if (bcma_wait_bits(dev, 0x1e0, 1 << 24, 100)) in bcma_hcd_init_chip_mips()
126 bcma_write32(dev, 0x200, 0x4ff); in bcma_hcd_init_chip_mips()
128 bcma_write32(dev, 0x200, 0x6ff); in bcma_hcd_init_chip_mips()
132 bcma_write32(dev, 0x524, 0x6b); in bcma_hcd_init_chip_mips()
134 tmp = bcma_read32(dev, 0x524); in bcma_hcd_init_chip_mips()
136 bcma_write32(dev, 0x524, 0xab); in bcma_hcd_init_chip_mips()
138 tmp = bcma_read32(dev, 0x524); in bcma_hcd_init_chip_mips()
140 bcma_write32(dev, 0x524, 0x2b); in bcma_hcd_init_chip_mips()
142 tmp = bcma_read32(dev, 0x524); in bcma_hcd_init_chip_mips()
144 bcma_write32(dev, 0x524, 0x10ab); in bcma_hcd_init_chip_mips()
146 tmp = bcma_read32(dev, 0x524); in bcma_hcd_init_chip_mips()
148 if (bcma_wait_bits(dev, 0x528, 0xc000, 10000)) { in bcma_hcd_init_chip_mips()
149 tmp = bcma_read32(dev, 0x528); in bcma_hcd_init_chip_mips()
151 "USB20H mdio_rddata 0x%08x\n", tmp); in bcma_hcd_init_chip_mips()
153 bcma_write32(dev, 0x528, 0x80000000); in bcma_hcd_init_chip_mips()
154 tmp = bcma_read32(dev, 0x314); in bcma_hcd_init_chip_mips()
156 bcma_write32(dev, 0x200, 0x7ff); in bcma_hcd_init_chip_mips()
160 bcma_write32(dev, 0x510, 0); in bcma_hcd_init_chip_mips()
162 bcma_write32(dev, 0x200, 0x7ff); in bcma_hcd_init_chip_mips()
187 return 0; in bcma_hcd_usb20_old_arm_init()
200 bcma_awrite32(core, BCMA_RESET_CTL, 0); in bcma_hcd_usb20_old_arm_init()
211 bcma_write32(core, 0x510, 0xc7f85000); in bcma_hcd_usb20_old_arm_init()
212 bcma_write32(core, 0x510, 0xc7f85003); in bcma_hcd_usb20_old_arm_init()
216 bcma_write32(pmu_core, BCMA_CC_PMU_PLLCTL_ADDR, 0x6); in bcma_hcd_usb20_old_arm_init()
217 bcma_write32(pmu_core, BCMA_CC_PMU_PLLCTL_DATA, 0x005360c1); in bcma_hcd_usb20_old_arm_init()
219 bcma_write32(pmu_core, BCMA_CC_PMU_PLLCTL_ADDR, 0x7); in bcma_hcd_usb20_old_arm_init()
220 bcma_write32(pmu_core, BCMA_CC_PMU_PLLCTL_DATA, 0x0); in bcma_hcd_usb20_old_arm_init()
225 bcma_write32(core, 0x510, 0x7f8d007); in bcma_hcd_usb20_old_arm_init()
229 bcma_write32(core, 0x200, 0x4ff); in bcma_hcd_usb20_old_arm_init()
231 bcma_write32(core, 0x200, 0x6ff); in bcma_hcd_usb20_old_arm_init()
233 bcma_write32(core, 0x200, 0x7ff); in bcma_hcd_usb20_old_arm_init()
238 return 0; in bcma_hcd_usb20_old_arm_init()
246 val = bcma_read32(dev, 0x94); in bcma_hcd_usb20_ns_init_hc()
247 val &= 0xffff; in bcma_hcd_usb20_ns_init_hc()
248 val |= 0x80 << 16; in bcma_hcd_usb20_ns_init_hc()
249 bcma_write32(dev, 0x94, val); in bcma_hcd_usb20_ns_init_hc()
252 val = bcma_read32(dev, 0x9c); in bcma_hcd_usb20_ns_init_hc()
254 bcma_write32(dev, 0x9c, val); in bcma_hcd_usb20_ns_init_hc()
273 bcma_core_enable(core, 0); in bcma_hcd_usb20_ns_init()
281 return 0; in bcma_hcd_usb20_ns_init()
309 memset(hci_res, 0, sizeof(hci_res)); in bcma_hcd_create_pdev()
311 hci_res[0].start = addr; in bcma_hcd_create_pdev()
312 hci_res[0].end = hci_res[0].start + 0x1000 - 1; in bcma_hcd_create_pdev()
313 hci_res[0].flags = IORESOURCE_MEM; in bcma_hcd_create_pdev()
318 hci_dev = platform_device_alloc(name, 0); in bcma_hcd_create_pdev()
356 /* In AI chips EHCI is addrspace 0, OHCI is 1 */ in bcma_hcd_usb20_init()
357 ohci_addr = dev->addr_s[0]; in bcma_hcd_usb20_init()
360 && chipinfo->rev == 0) in bcma_hcd_usb20_init()
361 ohci_addr = 0x18009000; in bcma_hcd_usb20_init()
377 return 0; in bcma_hcd_usb20_init()
389 bcma_core_enable(core, 0); in bcma_hcd_usb30_init()
393 return 0; in bcma_hcd_usb30_init()
438 return 0; in bcma_hcd_probe()
452 bcma_core_disable(dev, 0); in bcma_hcd_remove()
458 bcma_core_disable(dev, 0); in bcma_hcd_shutdown()
466 bcma_core_disable(dev, 0); in bcma_hcd_suspend()
468 return 0; in bcma_hcd_suspend()
474 bcma_core_enable(dev, 0); in bcma_hcd_resume()
476 return 0; in bcma_hcd_resume()