[ARM] Orion: fix PCIe inbound window programming when RAM size is not a power of two
commit7788cd5557766d49343088b2edc544b186e2fe53
authorLennert Buytenhek <buytenh@wantstofly.org>
Wed, 23 Dec 2009 15:19:56 +0000 (23 16:19 +0100)
committerNicolas Pitre <nico@fluxnic.net>
Tue, 29 Dec 2009 04:50:49 +0000 (28 23:50 -0500)
treeee2cf8fa7858b149e8f8835aa2208cb5201eb586
parent6b7b284958d47b77d06745b36bc7f36dab769d9b
[ARM] Orion: fix PCIe inbound window programming when RAM size is not a power of two

The PCIe inbound window size is supposed to be a power of two.  If
the total amount of RAM installed in the system is not a power of two,
round it up such that it is.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
arch/arm/plat-orion/pcie.c