Lines Matching +full:cs +full:- +full:setup

1 // SPDX-License-Identifier: GPL-2.0+
5 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
39 * USB 2.0 Bridge Address Decoding registers setup
50 * to the common mvebu archticture including the mbus setup, this
65 for (i = 0; i < dram->num_cs; i++) { in usb_brg_adrdec_setup()
66 const struct mbus_dram_window *cs = dram->cs + i; in usb_brg_adrdec_setup() local
69 writel(((cs->size - 1) & 0xffff0000) | (cs->mbus_attr << 8) | in usb_brg_adrdec_setup()
70 (dram->mbus_dram_target_id << 4) | 1, in usb_brg_adrdec_setup()
74 writel(cs->base, base + USB_WINDOW_BASE(i)); in usb_brg_adrdec_setup()
81 struct ehci_mvebu_priv *priv = ctrl->priv; in marvell_ehci_powerup_fixup()
92 priv->hcd_base + USB2_SBUSCFG_OFF); in marvell_ehci_powerup_fixup()
110 priv->hcd_base = devfdt_get_addr(dev); in ehci_mvebu_probe()
111 if (priv->hcd_base == FDT_ADDR_T_NONE) { in ehci_mvebu_probe()
113 return -ENXIO; in ehci_mvebu_probe()
120 * Also, the address decoder doesn't need to get setup with this in ehci_mvebu_probe()
123 if (device_is_compatible(dev, "marvell,armada3700-ehci")) in ehci_mvebu_probe()
126 usb_brg_adrdec_setup((void *)priv->hcd_base); in ehci_mvebu_probe()
128 hccr = (struct ehci_hccr *)(priv->hcd_base + 0x100); in ehci_mvebu_probe()
130 ((uintptr_t)hccr + HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_mvebu_probe()
132 debug("ehci-marvell: init hccr %lx and hcor %lx hc_length %ld\n", in ehci_mvebu_probe()
134 (uintptr_t)HC_LENGTH(ehci_readl(&hccr->cr_capbase))); in ehci_mvebu_probe()
141 { .compatible = "marvell,orion-ehci", },
142 { .compatible = "marvell,armada3700-ehci", },
188 size = gd->bd->bi_dram[i].size; in usb_brg_adrdec_setup()
189 base = gd->bd->bi_dram[i].start; in usb_brg_adrdec_setup()
213 + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
215 debug("ehci-marvell: init hccr %x and hcor %x hc_length %d\n", in ehci_hcd_init()
217 (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()