From e053ab1903ccae6048ef759025b9f675bba91450 Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Tue, 28 Oct 2008 11:45:04 -0500 Subject: 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: Scott Wood Signed-off-by: Kim Phillips --- cpu/mpc83xx/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpu/mpc83xx') diff --git a/cpu/mpc83xx/pci.c b/cpu/mpc83xx/pci.c index 5b8eeb775..ab0760bce 100644 --- a/cpu/mpc83xx/pci.c +++ b/cpu/mpc83xx/pci.c @@ -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; -- cgit v1.2.3