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

Commit ec5f77e7 authored by Stefan Roese's avatar Stefan Roese Committed by Paul Mackerras
Browse files

[POWERPC] ppc: Fix PCIX configuration of Ocotea & Taishan for > 512MB DDR



Change the configuration of the PCIX PCI->PLB inbound memory window
to be 2GB instead of 512kB. The comment already mentioned 2GB, but the
code unfortunately didn't reflect this.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent f6f7dde3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ ocotea_setup_pcix(void)
	/* Setup 2GB PCI->PLB inbound memory window at 0, enable MSIs */
	PCIX_WRITEL(0x00000000, PCIX0_PIM0LAH);
	PCIX_WRITEL(0x00000000, PCIX0_PIM0LAL);
	PCIX_WRITEL(0xe0000007, PCIX0_PIM0SA);
	PCIX_WRITEL(0x80000007, PCIX0_PIM0SA);

	eieio();
}
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ taishan_setup_pcix(void)
	/* Setup 2GB PCI->PLB inbound memory window at 0, enable MSIs */
	PCIX_WRITEL(0x00000000, PCIX0_PIM0LAH);
	PCIX_WRITEL(0x00000000, PCIX0_PIM0LAL);
	PCIX_WRITEL(0xe0000007, PCIX0_PIM0SA);
	PCIX_WRITEL(0x80000007, PCIX0_PIM0SA);
	PCIX_WRITEL(0xffffffff, PCIX0_PIM0SAH);

	iounmap(pcix_reg_base);