Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecd06305 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Bjorn Helgaas
Browse files

PCI: rcar: Change PCIEPARL and PCIEPARH to PCIEPALR and PCIEPAUR



PCIEPARL and PCIEPARH are macros that calculate register addresses.
However, the register names are incorrect.  Change them to PCIEPALR and
PCIEPAUR.

Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarPhil Edworthy <phil.edworthy@renesas.com>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 2ea2a273
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -64,8 +64,8 @@
#define  LAR_ENABLE		(1 << 1)
#define  LAR_ENABLE		(1 << 1)


/* PCIe address reg & mask */
/* PCIe address reg & mask */
#define PCIEPARL(x)		(0x03400 + ((x) * 0x20))
#define PCIEPALR(x)		(0x03400 + ((x) * 0x20))
#define PCIEPARH(x)		(0x03404 + ((x) * 0x20))
#define PCIEPAUR(x)		(0x03404 + ((x) * 0x20))
#define PCIEPAMR(x)		(0x03408 + ((x) * 0x20))
#define PCIEPAMR(x)		(0x03408 + ((x) * 0x20))
#define PCIEPTCTLR(x)		(0x0340c + ((x) * 0x20))
#define PCIEPTCTLR(x)		(0x0340c + ((x) * 0x20))
#define  PAR_ENABLE		(1 << 31)
#define  PAR_ENABLE		(1 << 31)
@@ -341,9 +341,9 @@ static void rcar_pcie_setup_window(int win, struct rcar_pcie *pcie)
	else
	else
		res_start = res->start;
		res_start = res->start;


	rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPARH(win));
	rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPAUR(win));
	rcar_pci_write_reg(pcie, lower_32_bits(res_start) & ~0x7F,
	rcar_pci_write_reg(pcie, lower_32_bits(res_start) & ~0x7F,
			   PCIEPARL(win));
			   PCIEPALR(win));


	/* First resource is for IO */
	/* First resource is for IO */
	mask = PAR_ENABLE;
	mask = PAR_ENABLE;