Skip to content
Snippets Groups Projects
Commit e053ab19 authored by Scott Wood's avatar Scott Wood Committed by Kim Phillips
Browse files

mpc83xx pci: Round up memory size in inbound window.


The current calculation will fail to cover all memory if
its size is not a power of two.

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
parent b1d0db18
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ static void pci_init_bus(int bus, struct pci_region *reg)
pci_ctrl->pibar1 = 0;
pci_ctrl->piebar1 = 0;
pci_ctrl->piwar1 = PIWAR_EN | PIWAR_PF | PIWAR_RTT_SNOOP |
PIWAR_WTT_SNOOP | (__ilog2(gd->ram_size) - 1);
PIWAR_WTT_SNOOP | (__ilog2(gd->ram_size - 1));
i = hose->region_count++;
hose->regions[i].bus_start = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment