Skip to content

Commit 2c5f674

Browse files
committed
sh: Establish a SuperHyway<->PCIe window mapping on SH7786 PCIe.
This bumps up the low address to match the physical memory windows for SHway<->PCIe transfers. The previous implementation was banking on a 1:1 virt<->phys SHway mapping, which doesn't apply here. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 2dbfa1e commit 2c5f674

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/sh/drivers/pci/pcie-sh7786.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ static int pcie_init(struct sh7786_pcie_port *port)
354354
__raw_writel(((roundup_pow_of_two(size) / SZ_256K) - 1) << 18,
355355
chan->reg_base + SH4A_PCIEPAMR(i));
356356

357+
pci_write_reg(chan, res->start, SH4A_PCIEPARL(i));
357358
pci_write_reg(chan, 0x00000000, SH4A_PCIEPARH(i));
358-
pci_write_reg(chan, 0x00000000, SH4A_PCIEPARL(i));
359359

360360
enable_mask = MASK_PARE;
361361
if (res->flags & IORESOURCE_IO)

0 commit comments

Comments
 (0)