summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-10-30 21:34:40 +0100
committerWolfgang Denk <wd@denx.de>2008-10-30 21:34:40 +0100
commitd344293a5b953eff1c8617e6b89703e82f7ca13f (patch)
tree1be3dfb1b271a2524a91a59a4d9f8e91d8b0f9bc
parenta7faab9d119885e1072c0797ddcea673ab832857 (diff)
parente053ab1903ccae6048ef759025b9f675bba91450 (diff)
downloadu-boot-imx-d344293a5b953eff1c8617e6b89703e82f7ca13f.zip
u-boot-imx-d344293a5b953eff1c8617e6b89703e82f7ca13f.tar.gz
u-boot-imx-d344293a5b953eff1c8617e6b89703e82f7ca13f.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx
-rw-r--r--cpu/mpc83xx/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc83xx/pci.c b/cpu/mpc83xx/pci.c
index 5b8eeb7..ab0760b 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;