Lines Matching +full:cs +full:- +full:number
2 * arch/arm/plat-orion/pcie.c
16 #include <plat/addr-map.h>
28 #define PCIE_BAR_CTRL_OFF(n) (0x1804 + ((n - 1) * 4))
98 * MV-S104860-U0, Rev. C: in orion_pcie_reset()
101 * This bit should be cleared after the link is re-established. in orion_pcie_reset()
120 * BAR[0,2] -> disabled, BAR[1] -> covers all DRAM banks
121 * WIN[0-3] -> DRAM bank[0-3]
154 for (i = 0; i < dram->num_cs; i++) { in orion_pcie_setup_wins()
155 const struct mbus_dram_window *cs = dram->cs + i; in orion_pcie_setup_wins() local
157 writel(cs->base & 0xffff0000, base + PCIE_WIN04_BASE_OFF(i)); in orion_pcie_setup_wins()
159 writel(((cs->size - 1) & 0xffff0000) | in orion_pcie_setup_wins()
160 (cs->mbus_attr << 8) | in orion_pcie_setup_wins()
161 (dram->mbus_dram_target_id << 4) | 1, in orion_pcie_setup_wins()
164 size += cs->size; in orion_pcie_setup_wins()
170 if ((size & (size - 1)) != 0) in orion_pcie_setup_wins()
176 writel(dram->cs[0].base, base + PCIE_BAR_LO_OFF(1)); in orion_pcie_setup_wins()
178 writel(((size - 1) & 0xffff0000) | 1, base + PCIE_BAR_CTRL_OFF(1)); in orion_pcie_setup_wins()
201 * Enable interrupt lines A-D. in orion_pcie_setup()
211 writel(PCIE_CONF_BUS(bus->number) | in orion_pcie_rd_conf()
230 writel(PCIE_CONF_BUS(bus->number) | in orion_pcie_rd_conf_tlp()
238 if (bus->number != orion_pcie_get_local_bus_nr(base) || in orion_pcie_rd_conf_tlp()
253 *val = readl(wa_base + (PCIE_CONF_BUS(bus->number) | in orion_pcie_rd_conf_wa()
271 writel(PCIE_CONF_BUS(bus->number) | in orion_pcie_wr_conf()