Skip to content

Commit

Permalink
[POWERPC] ppc: Fix PCIX configuration of Ocotea & Taishan for > 512MB…
Browse files Browse the repository at this point in the history
… 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: Stefan Roese <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
stroese authored and paulusmack committed Mar 26, 2007
1 parent f6f7dde commit ec5f77e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/ppc/platforms/4xx/ocotea.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/platforms/4xx/taishan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec5f77e

Please sign in to comment.