summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrafulla Wadaskar <prafulla@marvell.com>2010-08-26 14:43:55 +0530
committerPrafulla Wadaskar <prafulla@marvell.com>2010-08-26 14:43:55 +0530
commitf106056095049c2c748c2a2797e5353295240e04 (patch)
tree00ae87a6347c2fb56cc1628cc2ee6e1a4ba99320
parent4e4479a8922833025a8aac4f33fff9fa1e294ac9 (diff)
downloadu-boot-imx-f106056095049c2c748c2a2797e5353295240e04.zip
u-boot-imx-f106056095049c2c748c2a2797e5353295240e04.tar.gz
u-boot-imx-f106056095049c2c748c2a2797e5353295240e04.tar.bz2
Kirkwood: bugfix: window size (mis)calculation
Fixed kw_winctrl_calcsize() off-by-1 bug which caused mapping windows size to be cut by half. This corrected all windows address configuration Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
-rw-r--r--arch/arm/cpu/arm926ejs/kirkwood/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/arm926ejs/kirkwood/cpu.c b/arch/arm/cpu/arm926ejs/kirkwood/cpu.c
index c63e864..82c978b 100644
--- a/arch/arm/cpu/arm926ejs/kirkwood/cpu.c
+++ b/arch/arm/cpu/arm926ejs/kirkwood/cpu.c
@@ -81,7 +81,7 @@ unsigned int kw_winctrl_calcsize(unsigned int sizeval)
unsigned int j = 0;
u32 val = sizeval >> 1;
- for (i = 0; val > 0x10000; i++) {
+ for (i = 0; val >= 0x10000; i++) {
j |= (1 << i);
val = val >> 1;
}